mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
message scroll: Check message feed visibility instead of recent topics.
This is functionally the same, but semantically more relevant. It will also be helpful if some day in the future these two function calls are no longer perfect opposites of each other.
This commit is contained in:
@@ -6,7 +6,6 @@ import * as message_fetch from "./message_fetch";
|
||||
import * as message_lists from "./message_lists";
|
||||
import * as message_viewport from "./message_viewport";
|
||||
import * as narrow_state from "./narrow_state";
|
||||
import * as recent_topics_util from "./recent_topics_util";
|
||||
import * as unread from "./unread";
|
||||
import * as unread_ops from "./unread_ops";
|
||||
import * as unread_ui from "./unread_ui";
|
||||
@@ -82,7 +81,7 @@ export function scroll_finished() {
|
||||
message_lists.current.view.update_sticky_recipient_headers();
|
||||
hide_scroll_to_bottom();
|
||||
|
||||
if (recent_topics_util.is_visible()) {
|
||||
if (!narrow_state.is_message_feed_visible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user