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.

narrow-state: Filter out "with" operator in narrowed_by_topic_reply.

Lauryn Menard24a65c178372
diff --git a/web/src/narrow_state.ts b/web/src/narrow_state.ts
index 9eb228fb50f..1ae8d6b94c9 100644
--- a/web/src/narrow_state.ts
+++ b/web/src/narrow_state.ts
@@ -366,7 +366,7 @@ export function narrowed_by_topic_reply(current_filter: Filter | undefined = fil
if (current_filter === undefined) {
return false;
}
- const terms = current_filter.terms();
+ const terms = current_filter.terms().filter((term) => term.operator !== "with");
return (
terms.length === 2 &&
current_filter.operands("channel").length === 1 &&