Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
filter: Use canonical terms when updating Filter for message moves.
Lauryn Menarde3a521f4baaf
diff --git a/web/src/filter.ts b/web/src/filter.tsindex 1bb9bced2df..4c611e481e4 100644--- a/web/src/filter.ts+++ b/web/src/filter.ts@@ -1100,10 +1100,11 @@ export class Filter {}filter_with_new_params(params: NarrowTerm): Filter {+ const new_params = this.fix_terms([params])[0];const terms = this._terms.map((term) => {const new_term = {...term};- if (new_term.operator === params.operator && !new_term.negated) {- new_term.operand = params.operand;+ if (new_term.operator === new_params.operator && !new_term.negated) {+ new_term.operand = new_params.operand;}return new_term;});