Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Directly access recipient_id from Stream object.
Sahil Batra537ecbab45a2
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.pyindex 24e9624aacb..d5747c0938d 100644--- a/zerver/lib/narrow.py+++ b/zerver/lib/narrow.py@@ -435,9 +435,9 @@ class NarrowBuilder:cond = column("recipient_id", Integer).in_(recipient_ids)return query.where(maybe_negate(cond))- recipient = stream.recipient- assert recipient is not None- cond = column("recipient_id", Integer) == recipient.id+ recipient_id = stream.recipient_id+ assert recipient_id is not None+ cond = column("recipient_id", Integer) == recipient_idreturn query.where(maybe_negate(cond))def by_streams(self, query: Select, operand: str, maybe_negate: ConditionTransform) -> Select: