mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
Remove superfluous call to MessageList.closest_id
(imported from commit 11d4f096517df4b9ed89f184a1d383c8a55697bc)
This commit is contained in:
@@ -230,8 +230,7 @@ exports.activate = function (operators, opts) {
|
|||||||
|
|
||||||
function maybe_select_closest() {
|
function maybe_select_closest() {
|
||||||
if (! narrowed_msg_list.empty()) {
|
if (! narrowed_msg_list.empty()) {
|
||||||
var id = narrowed_msg_list.closest_id(then_select_id);
|
narrowed_msg_list.select_id(then_select_id, {then_scroll: true, use_closest: true});
|
||||||
narrowed_msg_list.select_id(id, {then_scroll: true, use_closest: true});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user