Merge branch 'alexgleason-develop-patch-30581' into 'develop'

Ignore streaming deletion events

See merge request soapbox-pub/soapbox-fe!1566
virtuoso-debug
Alex Gleason 2022-06-27 14:49:03 +00:00
commit a228d87fa4
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ import { fetchFilters } from './filters';
import { updateNotificationsQueue, expandNotifications } from './notifications';
import { updateStatus } from './statuses';
import {
deleteFromTimelines,
// deleteFromTimelines,
expandHomeTimeline,
connectTimeline,
disconnectTimeline,
@ -63,9 +63,12 @@ const connectTimelineStream = (
case 'status.update':
dispatch(updateStatus(JSON.parse(data.payload)));
break;
case 'delete':
dispatch(deleteFromTimelines(data.payload));
break;
// FIXME: We think delete & redraft is causing jumpy timelines.
// Fix that in ScrollableList then re-enable this!
//
// case 'delete':
// dispatch(deleteFromTimelines(data.payload));
// break;
case 'notification':
messages[locale]().then(messages => {
dispatch(updateNotificationsQueue(JSON.parse(data.payload), messages, locale, window.location.pathname));