Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_view: Fix narrow to compose recipient rerenders in same narrow.
Aman Agrawal8e5672dd98b3
diff --git a/web/src/message_view.ts b/web/src/message_view.tsindex 27f37e3ed5c..176d6389288 100644--- a/web/src/message_view.ts+++ b/web/src/message_view.ts@@ -296,6 +296,11 @@ export function try_rendering_locally_for_same_narrow(target_scroll_offset = opts.then_select_offset;} else if (filter.has_operator("near")) {target_id = Number.parseInt(filter.operands("near")[0]!, 10);+ } else if (filter.equals(current_filter)) {+ // The caller doesn't want to force rerender and the filter is the same.+ // Also, we don't have a specific message id we want to select, so we+ // just keep the same message id selected.+ return true;} else {return false;}