Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
events: Remove deactivated streams from subscriptions field.
Sahil Batra4f58733d824b
diff --git a/zerver/lib/events.py b/zerver/lib/events.pyindex f61b0821022..e9086802af1 100644--- a/zerver/lib/events.py+++ b/zerver/lib/events.py@@ -1070,6 +1070,12 @@ def apply_event(s for s in state["streams"] if s["stream_id"] not in deleted_stream_ids]+ state["subscriptions"] = [+ stream+ for stream in state["subscriptions"]+ if stream["stream_id"] not in deleted_stream_ids+ ]+state["unsubscribed"] = [streamfor stream in state["unsubscribed"]