Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
unread_banner: Fix unread banner not hiding when marking topic as read.
Pratik Chandaa2fc3a0d7fcf
diff --git a/web/src/unread_ops.ts b/web/src/unread_ops.tsindex d9d91de1d0c..b87ba06e85c 100644--- a/web/src/unread_ops.ts+++ b/web/src/unread_ops.ts@@ -276,7 +276,9 @@ function bulk_update_read_flags_for_narrow(term.negated === false),);- if (message_lists.current?.data.filter.equals(new Filter(filter_terms))) {+ // Current narrow may have "with" operator around a message target which+ // we would want to ignore for bulk reading a message list.+ if (message_lists.current?.data.filter.equals(new Filter(filter_terms), ["with"])) {message_lists.current?.resume_reading();unread_ui.hide_unread_banner();}@@ -606,6 +608,10 @@ export function process_read_messages_event(message_ids: number[]): void {}}+ if (message_lists.current !== undefined && !message_lists.current.has_unread_messages()) {+ unread_ui.hide_unread_banner();+ }+unread_ui.update_unread_counts();}