Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix unicorn/consistent-destructuring.

Anders Kaseorg2e501c866734
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.js
index db3100d9f73..c6802860603 100644
--- a/frontend_tests/puppeteer_lib/common.js
+++ b/frontend_tests/puppeteer_lib/common.js
@@ -314,7 +314,7 @@ class CommonUtils {
async send_message(page, type, params) {
// If a message is outside the view, we do not need
// to wait for it to be processed later.
- const {outside_view} = params;
+ const outside_view = params.outside_view;
delete params.outside_view;
// Compose box content should be empty before sending the message.
diff --git a/static/js/message_events.js b/static/js/message_events.js
index 7583c25deeb..8a70f6b89be 100644
--- a/static/js/message_events.js
+++ b/static/js/message_events.js
@@ -147,7 +147,7 @@ exports.update_messages = function update_messages(events) {
const new_topic = util.get_edit_event_topic(event);
- const {new_stream_id} = event;
+ const new_stream_id = event.new_stream_id;
// A topic edit may affect multiple messages, listed in
// event.message_ids. event.message_id is still the first message