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.

unread_ops: Fix filter term check for current narrow when bulk update.

Pratik Chandac9492750d472
diff --git a/web/src/unread_ops.ts b/web/src/unread_ops.ts
index c9174dc28dd..632c047f91a 100644
--- a/web/src/unread_ops.ts
+++ b/web/src/unread_ops.ts
@@ -277,9 +277,14 @@ function bulk_update_read_flags_for_narrow(
term.negated === false
),
);
- // 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"])) {
+ // Current narrow may have "with" or "near" 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",
+ "near",
+ ])
+ ) {
message_lists.current?.resume_reading();
unread_ui.hide_unread_banner();
}