mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
compose: Fix incorrect scroll down notice in recent view.
The logic for whether one needs to scroll down to view messages sent by the current client was incorrectly not checking whether a message feed was visible at all.
This commit is contained in:
@@ -141,7 +141,8 @@ export function insert_new_messages(messages, sent_by_this_client) {
|
|||||||
// looks at message feed scroll positions to see whether the
|
// looks at message feed scroll positions to see whether the
|
||||||
// newly arrived message will be visible, is only valid if
|
// newly arrived message will be visible, is only valid if
|
||||||
// this message list is the currently visible message list.
|
// this message list is the currently visible message list.
|
||||||
const is_currently_visible = list === message_lists.current;
|
const is_currently_visible =
|
||||||
|
narrow_state.is_message_feed_visible() && list === message_lists.current;
|
||||||
if (is_currently_visible && render_info && render_info.need_user_to_scroll) {
|
if (is_currently_visible && render_info && render_info.need_user_to_scroll) {
|
||||||
need_user_to_scroll = true;
|
need_user_to_scroll = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user