Skip to content

Commit

Permalink
Fix uninitialized grouped notifications read marker on initial load (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Aug 8, 2024
1 parent 0e4d3c0 commit 079d681
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/javascript/mastodon/reducers/notification_groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 079d681

Please sign in to comment.