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_events: Fix move_message_stream_id type confusion.

Tim Abbott21ddd719e788
diff --git a/web/src/message_events.js b/web/src/message_events.js
index fff6593d5ed..0a7643c53df 100644
--- a/web/src/message_events.js
+++ b/web/src/message_events.js
@@ -532,10 +532,10 @@ export function update_messages(events) {
// If a message was moved to the current narrow and we don't have
// the message cached, we need to refresh the narrow to display the message.
if (!changed_narrow && local_cache_missing_messages && current_filter) {
- let moved_message_stream_id = old_stream_id;
+ let moved_message_stream_id_str = old_stream_id.toString();
let moved_message_topic = orig_topic;
if (stream_changed) {
- moved_message_stream_id = sub_store.get(new_stream_id).stream_id.toString();
+ moved_message_stream_id_str = sub_store.get(new_stream_id).stream_id.toString();
}
if (topic_edited) {
@@ -544,7 +544,7 @@ export function update_messages(events) {
if (
current_filter.can_newly_match_moved_messages(
- moved_message_stream_id,
+ moved_message_stream_id_str,
moved_message_topic,
)
) {