mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
narrow-state: Filter out "with" operator in narrowed_by_topic_reply.
As the web app is now using the "with" operator for links to channel topic conversations, we need to filter out that operator when checking the current narrow state.
This commit is contained in:
committed by
Tim Abbott
parent
ae66bf287b
commit
24a65c1783
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user