0
0
Fork 0

Fix all streamed notification types being stored without filtering (#31384)

This commit is contained in:
Claire 2024-08-12 15:40:29 +02:00 committed by GitHub
parent 709dcd07f2
commit a7b718c31a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 59 additions and 10 deletions

View file

@ -387,12 +387,14 @@ export const notificationGroupsReducer = createReducer<NotificationGroupsState>(
})
.addCase(processNewNotificationForGroups.fulfilled, (state, action) => {
const notification = action.payload;
processNewNotification(
usePendingItems ? state.pendingGroups : state.groups,
notification,
);
updateLastReadId(state);
trimNotifications(state);
if (notification) {
processNewNotification(
usePendingItems ? state.pendingGroups : state.groups,
notification,
);
updateLastReadId(state);
trimNotifications(state);
}
})
.addCase(disconnectTimeline, (state, action) => {
if (action.payload.timeline === 'home') {