mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
Due to a past refactoring, the from_reload argument to do_hashchange changed from having true/undefined as the possible values to true/false instead. The check that sets the from_reload and first_unread_from_server narrow options was thus incorreclty treating from_reload of false the same as a from_reload of undefined. As a result, if the browser had been loaded with a page_params.initial_narrow_pointer (aka via the background reload code path), then for the duration of that browser session, every time one narrowed via a hashchange rather than an explicit click handler (which apparently includes clicking on a PM thread in the left sidebar), we'd end up narrowing with a then_select_id of the that initial narrow pointer, not the correct first unread message. The fix is simply changing the check for truthiness, not undefined, in do_hashchange.
9.6 KiB
9.6 KiB