mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 17:51:36 +01:00
Fix uninitialized grouped notifications read marker on initial load (#31347)
This commit is contained in:
parent
0e4d3c0403
commit
079d681ac6
1 changed files with 4 additions and 1 deletions
|
@ -474,8 +474,11 @@ export const notificationGroupsReducer = createReducer<NotificationGroupsState>(
|
||||||
state.lastReadId,
|
state.lastReadId,
|
||||||
action.payload.markers.notifications.last_read_id,
|
action.payload.markers.notifications.last_read_id,
|
||||||
) < 0
|
) < 0
|
||||||
)
|
) {
|
||||||
state.lastReadId = action.payload.markers.notifications.last_read_id;
|
state.lastReadId = action.payload.markers.notifications.last_read_id;
|
||||||
|
state.readMarkerId =
|
||||||
|
action.payload.markers.notifications.last_read_id;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.addCase(mountNotifications, (state) => {
|
.addCase(mountNotifications, (state) => {
|
||||||
state.mounted += 1;
|
state.mounted += 1;
|
||||||
|
|
Loading…
Reference in a new issue