mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
Because we can count on the unread.js data structures to be correct, we no longer need this legacy code that tries to re-process all messages the client has cached for whether any are present in the target stream and marked as unread. It's not clear we need this at all, since the current Zulip server will mark all messages as read when unsubscribing from a stream, but having this call protects us from future bugs should that behavior change. This cleanup also revealed a possible bug, where we would fail to update global unread counts properly when unsubscribing from a stream until the deferred_work queue processor sends us the update_message_flags event associated with that change.
6.7 KiB
6.7 KiB