Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_view: Ignore fetched messages if user changed view.
Aman Agrawal1e42d6085021
diff --git a/web/src/message_view.js b/web/src/message_view.jsindex 9b0ab524501..c5ecdd8f342 100644--- a/web/src/message_view.js+++ b/web/src/message_view.js@@ -660,6 +660,10 @@ export function show(raw_terms, opts) {validate_filter_topic_post_fetch:filter.requires_adjustment_for_moved_with_target,cont() {+ if (message_lists.current !== msg_list) {+ return;+ }+if (filter.narrow_requires_hash_change) {// We've already adjusted our filter via// filter.try_adjusting_for_moved_with_target, and@@ -682,7 +686,7 @@ export function show(raw_terms, opts) {render_message_list_with_selected_message({id_info,select_offset: then_select_offset,- msg_list: message_lists.current,+ msg_list,select_opts,});}