mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-10 00:23:11 +01:00
Remove leftover notification state use
This commit is contained in:
parent
ca0f5978be
commit
76bedaed35
1 changed files with 1 additions and 4 deletions
|
@ -11,7 +11,7 @@ import {
|
||||||
} from './announcements';
|
} from './announcements';
|
||||||
import { updateConversations } from './conversations';
|
import { updateConversations } from './conversations';
|
||||||
import { processNewNotificationForGroups, refreshStaleNotificationGroups, pollRecentNotifications as pollRecentGroupNotifications } from './notification_groups';
|
import { processNewNotificationForGroups, refreshStaleNotificationGroups, pollRecentNotifications as pollRecentGroupNotifications } from './notification_groups';
|
||||||
import { updateNotifications, expandNotifications } from './notifications';
|
import { updateNotifications } from './notifications';
|
||||||
import { updateStatus } from './statuses';
|
import { updateStatus } from './statuses';
|
||||||
import {
|
import {
|
||||||
updateTimeline,
|
updateTimeline,
|
||||||
|
@ -107,9 +107,6 @@ export const connectTimelineStream = (timelineId, channelName, params = {}, opti
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'notifications_merged': {
|
case 'notifications_merged': {
|
||||||
const state = getState();
|
|
||||||
if (state.notifications.top || !state.notifications.mounted)
|
|
||||||
dispatch(expandNotifications({ forceLoad: true, maxId: undefined }));
|
|
||||||
dispatch(refreshStaleNotificationGroups());
|
dispatch(refreshStaleNotificationGroups());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue