diff --git a/static/js/unread_ops.js b/static/js/unread_ops.js index 6e3c238706..2396aeb583 100644 --- a/static/js/unread_ops.js +++ b/static/js/unread_ops.js @@ -23,7 +23,11 @@ let loading_indicator_displayed = false; export function mark_all_as_read(args = {}) { args = { - anchor: "first_unread", + // We use an anchor of "oldest", not "first_unread", because + // "first_unread" will be the oldest non-muted unread message, + // which would result in muted unreads older than the first + // unread not being processed. + anchor: "oldest", include_anchor: true, messages_read_till_now: 0, ...args,