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.

message_list_view: Use stream_id to get sub object for populating group.

sahil839b7f6a5179702
diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js
index 1ad1a8efdce..579436a335f 100644
--- a/static/js/message_list_view.js
+++ b/static/js/message_list_view.js
@@ -133,7 +133,7 @@ function populate_group_from_message_container(group, message_container) {
group.match_topic = util.get_match_topic(message_container.msg);
group.stream_url = message_container.stream_url;
group.topic_url = message_container.topic_url;
- const sub = stream_data.get_sub(message_container.msg.stream);
+ const sub = stream_data.get_sub_by_id(message_container.msg.stream_id);
if (sub === undefined) {
// Hack to handle unusual cases like the tutorial where
// the streams used don't actually exist in the subs