mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
js: Convert _.chain to array methods.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
1fd4762063
commit
aa7df21265
@@ -231,7 +231,10 @@ exports.initialize_kitchen_sink_stuff = function () {
|
||||
selected_id_from_idx: messages[event.msg_list.selected_idx()].id,
|
||||
msg_list_sorted: _.isEqual(
|
||||
messages.map((message) => message.id),
|
||||
_.chain(current_msg_list.all_messages()).pluck("id").clone().value().sort(),
|
||||
current_msg_list
|
||||
.all_messages()
|
||||
.map((message) => message.id)
|
||||
.sort(),
|
||||
),
|
||||
found_in_dom: row_from_dom.length,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user