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.

inbox: Fix renamed topics not rerendered correctly.

Aman Agrawal386d3e700197
diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js
index ecbc3c4d3f5..807b291902f 100644
--- a/web/src/inbox_ui.js
+++ b/web/src/inbox_ui.js
@@ -799,6 +799,9 @@ export function update() {
stream_post_filter_unread_count += new_topic_data.unread_count;
}
} else {
+ // Remove old topic data since it can act as false data for renamed / a new
+ // topic having the same name as old topic.
+ delete topics_dict[stream_key][topic_key];
get_row_from_conversation_key(topic_key).remove();
}
}