mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
stream_list: Ignore left sidebar scroll until initial fetch is complete.
Since the initial fetch has a lot of messages, it can add many topics to the left sidebar which can move the selected topic out of the view. Note that `has_scrolled` is triggered even for the scrolls not triggered by user since it is not easy to differentiate between the two events. So, it is okay to ignore it initially.
This commit is contained in:
@@ -168,7 +168,7 @@ function process_result(data: MessageFetchResponse, opts: MessageFetchOptions):
|
||||
|
||||
direct_message_group_data.process_loaded_messages(messages);
|
||||
stream_list.update_streams_sidebar();
|
||||
stream_list.maybe_scroll_narrow_into_view();
|
||||
stream_list.maybe_scroll_narrow_into_view(!first_messages_fetch);
|
||||
|
||||
if (
|
||||
message_lists.current !== undefined &&
|
||||
|
||||
Reference in New Issue
Block a user