mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
message_list_view: Only update scroll position for current msg list.
This commit is contained in:
parent
299d13646e
commit
2c8a5ac751
@ -1178,7 +1178,7 @@ export class MessageListView {
|
||||
// window such that the newly selected message is at the
|
||||
// same location as it would have been before we
|
||||
// re-rendered.
|
||||
if (target_offset !== undefined) {
|
||||
if (target_offset !== undefined && message_lists.current === this) {
|
||||
if (this.selected_row().length === 0 && this.list.selected_id() > -1) {
|
||||
this.list.select_id(this.list.selected_id(), {use_closest: true});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user