Skip to content

Commit

Permalink
[Glitch] Fix “Mark every notification as read” not updating the read …
Browse files Browse the repository at this point in the history
…marker if scrolled down

Port e018e63 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
ClearlyClaire committed Oct 14, 2024
1 parent 9b3aaa9 commit 71a6ced
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,10 @@ export const notificationGroupsReducer = createReducer<NotificationGroupsState>(
compareId(state.lastReadId, mostRecentGroup.page_max_id) < 0
)
state.lastReadId = mostRecentGroup.page_max_id;
commitLastReadId(state);

// We don't call `commitLastReadId`, because that is conditional
// and we want to unconditionally update the state instead.
state.readMarkerId = state.lastReadId;
})
.addCase(fetchMarkers.fulfilled, (state, action) => {
if (
Expand Down

0 comments on commit 71a6ced

Please sign in to comment.