mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
Fixes #23406. Fixes #14053. This also uses the new alert banner system. It is not clear if we want to scroll user to the end of the narrow after this update is complete. There is a "scroll to bottom" button for users who want to be placed at the end of the narrow but there is no reverse option for users who don't. So, maybe not changing the scroll position is preferred especially since we now use banners for the update where a user could have been reading something while we were updating the message flags in the background. We do not handle the case of `mark as read` and `mark as unread` both running in batches at the same (This is a somewhat rare case given the high cap on `NUM_OF_MESSAGES_UPDATED_PER_BATCH` but possible.). `unread.declare_bankruptcy` is no longer used in the code but we keep it since it is used extensively in tests.
27 KiB
27 KiB