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:
evykassirer 2023-08-02 15:34:44 -07:00 committed by Tim Abbott
parent f8f2af5ebe
commit 76d9b1d9d0
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}