kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Streaming: load messages async
rodzic
956fa99ee1
commit
9e20452692
|
@ -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)));
|
||||
|
|
Ładowanie…
Reference in New Issue