Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_view: Name mutated opts separate from function params.
evykassirerb0785f0f2c5b
diff --git a/web/src/message_view.js b/web/src/message_view.jsindex a12c243c878..73ad64c72a2 100644--- a/web/src/message_view.js+++ b/web/src/message_view.js@@ -1230,7 +1230,7 @@ export function narrow_by_topic(target_id, opts) {}export function narrow_by_recipient(target_id, opts) {- opts = {then_select_id: target_id, ...opts};+ const show_opts = {then_select_id: target_id, ...opts};// don't use message_lists.current as it won't work for muted messages or for out-of-narrow linksconst message = message_store.get(target_id);const emails = message.reply_to.split(",");@@ -1248,7 +1248,7 @@ export function narrow_by_recipient(target_id, opts) {// in the new view.unread_ops.notify_server_message_read(message);}- show([{operator: "dm", operand: reply_to.join(",")}], opts);+ show([{operator: "dm", operand: reply_to.join(",")}], show_opts);break;case "stream":@@ -1269,7 +1269,7 @@ export function narrow_by_recipient(target_id, opts) {operand: message.stream_id.toString(),},],- opts,+ show_opts,);break;}