sforkowany z mirror/soapbox
Merge branch 'alexgleason-develop-patch-30581' into 'develop'
Ignore streaming deletion events See merge request soapbox-pub/soapbox-fe!1566virtuoso-debug
commit
a228d87fa4
|
@ -8,7 +8,7 @@ import { fetchFilters } from './filters';
|
||||||
import { updateNotificationsQueue, expandNotifications } from './notifications';
|
import { updateNotificationsQueue, expandNotifications } from './notifications';
|
||||||
import { updateStatus } from './statuses';
|
import { updateStatus } from './statuses';
|
||||||
import {
|
import {
|
||||||
deleteFromTimelines,
|
// deleteFromTimelines,
|
||||||
expandHomeTimeline,
|
expandHomeTimeline,
|
||||||
connectTimeline,
|
connectTimeline,
|
||||||
disconnectTimeline,
|
disconnectTimeline,
|
||||||
|
@ -63,9 +63,12 @@ const connectTimelineStream = (
|
||||||
case 'status.update':
|
case 'status.update':
|
||||||
dispatch(updateStatus(JSON.parse(data.payload)));
|
dispatch(updateStatus(JSON.parse(data.payload)));
|
||||||
break;
|
break;
|
||||||
case 'delete':
|
// FIXME: We think delete & redraft is causing jumpy timelines.
|
||||||
dispatch(deleteFromTimelines(data.payload));
|
// Fix that in ScrollableList then re-enable this!
|
||||||
break;
|
//
|
||||||
|
// case 'delete':
|
||||||
|
// dispatch(deleteFromTimelines(data.payload));
|
||||||
|
// break;
|
||||||
case 'notification':
|
case 'notification':
|
||||||
messages[locale]().then(messages => {
|
messages[locale]().then(messages => {
|
||||||
dispatch(updateNotificationsQueue(JSON.parse(data.payload), messages, locale, window.location.pathname));
|
dispatch(updateNotificationsQueue(JSON.parse(data.payload), messages, locale, window.location.pathname));
|
||||||
|
|
Ładowanie…
Reference in New Issue