mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
message_list_view: Fix incorrect comparison.
`this` is MessageListView here while `message_lists.current` is MessageList.
This commit is contained in:
@@ -1176,7 +1176,7 @@ export class MessageListView {
|
|||||||
// window such that the newly selected message is at the
|
// window such that the newly selected message is at the
|
||||||
// same location as it would have been before we
|
// same location as it would have been before we
|
||||||
// re-rendered.
|
// re-rendered.
|
||||||
if (target_offset !== undefined && message_lists.current === this) {
|
if (target_offset !== undefined && message_lists.current === this.list) {
|
||||||
if (this.selected_row().length === 0 && this.list.selected_id() > -1) {
|
if (this.selected_row().length === 0 && this.list.selected_id() > -1) {
|
||||||
this.list.select_id(this.list.selected_id(), {use_closest: true});
|
this.list.select_id(this.list.selected_id(), {use_closest: true});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user