From 9e2045269245b50676094cbda02fa5f5df4f2ff1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 4 Jun 2020 21:28:19 -0500 Subject: [PATCH] Streaming: load messages async --- app/soapbox/actions/streaming.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/streaming.js b/app/soapbox/actions/streaming.js index 6cb7db45c..ef515798a 100644 --- a/app/soapbox/actions/streaming.js +++ b/app/soapbox/actions/streaming.js @@ -35,7 +35,9 @@ export function connectTimelineStream(timelineId, path, pollingRefresh = null, a dispatch(deleteFromTimelines(data.payload)); break; case 'notification': - dispatch(updateNotificationsQueue(JSON.parse(data.payload), messages[locale], locale, window.location.pathname)); + messages[locale]().then(messages => { + dispatch(updateNotificationsQueue(JSON.parse(data.payload), messages, locale, window.location.pathname)); + }).catch(() => {}); break; case 'conversation': dispatch(updateConversations(JSON.parse(data.payload)));