mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
In the very common event that one ends up looking at not the home view while the browser is catching the home view up, this ended up resulting in loading indicators being displayed at the bottom of whatever narrowed view one was looking at incorrectly. A proper fix for this will involve making these loading indicators conditional on what view one is looking at. Since one can change views rapidly from a narrowed message list to the home view (and in the future, between narrows), probably the best approach would be to move the state in `message_scroll.js` the state for whether a loading indicator is expected to be shown into the `fetch_status` data structures, and then make all decisions about whether to show/hide a loading indicator be calls to a function with a name like: current_msg_list.data.fetch_status.update_newer_loading_indicator() At least, that's probably what we should call in places like `narrow.deactivate()`.
12 KiB
12 KiB