Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view: Remove unreachable code path.
Daniil Fadeevc33328abeffa
diff --git a/web/src/recent_view_util.js b/web/src/recent_view_util.jsindex 31951ba187d..20a8d0ff8eb 100644--- a/web/src/recent_view_util.js+++ b/web/src/recent_view_util.js@@ -18,8 +18,8 @@ export function get_key_from_message(msg) {// string containing the user IDs involved in the message in// sorted order.return msg.to_user_ids;- } else if (msg.type === "stream") {- return get_topic_key(msg.stream_id, msg.topic);}- throw new Error(`Invalid message type ${msg.type}`);++ // For messages with type = "stream".+ return get_topic_key(msg.stream_id, msg.topic);}