mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
eslint: Fix unicorn/prefer-spread.
This was initially disabled for IE/Babel-related reasons that no longer apply. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
941a9bab38
commit
2a70c11c5f
@@ -217,7 +217,7 @@ export function update_messages(events) {
|
||||
if (msg.edit_history === undefined) {
|
||||
msg.edit_history = [];
|
||||
}
|
||||
msg.edit_history = [edit_history_entry].concat(msg.edit_history);
|
||||
msg.edit_history = [edit_history_entry, ...msg.edit_history];
|
||||
}
|
||||
any_message_content_edited = true;
|
||||
|
||||
@@ -312,7 +312,7 @@ export function update_messages(events) {
|
||||
if (msg.edit_history === undefined) {
|
||||
msg.edit_history = [];
|
||||
}
|
||||
msg.edit_history = [edit_history_entry].concat(msg.edit_history);
|
||||
msg.edit_history = [edit_history_entry, ...msg.edit_history];
|
||||
}
|
||||
msg.last_edit_timestamp = event.edit_timestamp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user