Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Use list comprehension instead of filter with lambda.
Tim Abbott9dedb2ef6577
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.pyindex 5159dafd035..1a736ab7f20 100644--- a/zerver/lib/narrow.py+++ b/zerver/lib/narrow.py@@ -875,7 +875,7 @@ def update_narrow_terms_containing_with_operator(if narrow is None:return narrow- with_operator_terms = list(filter(lambda term: term.operator == "with", narrow))+ with_operator_terms = [term for term in narrow if term.operator == "with"]can_user_access_target_message = Trueif len(with_operator_terms) > 1: