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_view: Update date on sticky header after rendering narrow.

Aman Agrawal787a37176dc0
diff --git a/web/src/message_view.ts b/web/src/message_view.ts
index c5946a29f9c..09b0b0b97df 100644
--- a/web/src/message_view.ts
+++ b/web/src/message_view.ts
@@ -1129,6 +1129,7 @@ export function render_message_list_with_selected_message(opts: {
// narrowing
message_lists.current.view.set_message_offset(select_offset);
}
+ message_lists.current.view.update_sticky_recipient_headers();
unread_ops.process_visible();
narrow_history.save_narrow_state_and_flush();
}
diff --git a/web/tests/narrow_activate.test.js b/web/tests/narrow_activate.test.js
index 1149b11c2ed..ac56292c433 100644
--- a/web/tests/narrow_activate.test.js
+++ b/web/tests/narrow_activate.test.js
@@ -31,6 +31,7 @@ const message_lists = mock_esm("../src/message_lists", {
removeClass: noop,
addClass: noop,
},
+ update_sticky_recipient_headers: noop,
},
data: {
filter: new Filter([{operator: "in", operand: "all"}]),
@@ -141,6 +142,7 @@ function stub_message_list() {
removeClass: noop,
addClass: noop,
},
+ update_sticky_recipient_headers: noop,
};
get(msg_id) {