mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
js: Convert _.any(a, …), _.some(a, …) to a.some(…).
And convert the corresponding function expressions to arrow style while we’re here. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
2285ee922e
commit
70ff164f89
@@ -441,12 +441,8 @@ exports.toggle_actions_popover = function (element, id) {
|
||||
|
||||
const should_display_edit_history_option =
|
||||
message.edit_history &&
|
||||
_.any(
|
||||
message.edit_history,
|
||||
entry =>
|
||||
entry.prev_content !== undefined ||
|
||||
util.get_edit_event_prev_topic(entry) !== undefined
|
||||
) &&
|
||||
message.edit_history.some(entry => entry.prev_content !== undefined ||
|
||||
util.get_edit_event_prev_topic(entry) !== undefined) &&
|
||||
page_params.realm_allow_edit_history;
|
||||
|
||||
// Disabling this for /me messages is a temporary workaround
|
||||
|
||||
Reference in New Issue
Block a user