Fix uninitialized grouped notifications read marker on initial load (#31347)

shrike
Claire 2024-08-08 19:00:05 +02:00 committed by GitHub
parent 0e4d3c0403
commit 079d681ac6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -474,8 +474,11 @@ export const notificationGroupsReducer = createReducer<NotificationGroupsState>(
state.lastReadId,
action.payload.markers.notifications.last_read_id,
) < 0
)
) {
state.lastReadId = action.payload.markers.notifications.last_read_id;
state.readMarkerId =
action.payload.markers.notifications.last_read_id;
}
})
.addCase(mountNotifications, (state) => {
state.mounted += 1;