[Glitch] Fix uninitialized grouped notifications read marker on initial load
Port 079d681ac6f279f3a7a6be5c3734549f3be8f912 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
29db81e1bb
commit
dad9baaa54
@ -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…
x
Reference in New Issue
Block a user