mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
In the very early days of Zulip, we didn't have unread counts; just the pointer, and the correct behavior when opening a new tab was to place you near the pointer. That doesn't make any sense now that we do have unread counts, and this corner case has been a wart for a long time. This commit does the main behavior change here. However, there's a bug we need to fix, where we might end up trying to pre-render a view of the narrow based on the `all_msg_list` data before `all_msg_list` is caught up). We need to fix that bug before we can merge this; it should be possible to determine that using `FetchStatus` on `all_msg_list`, or with better performance by using the `unread_msgs` structure to determine whether the message we should be selecting is present locally. Fixes #789. Fixes #9070.