Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
events: Use 'get_notifications_stream' realm method.
Prakhar Pratyush0c83bca81ea0
diff --git a/zerver/lib/events.py b/zerver/lib/events.pyindex 8940dac2c31..8453287397b 100644--- a/zerver/lib/events.py+++ b/zerver/lib/events.py@@ -362,8 +362,8 @@ def fetch_initial_state_data(else server_default_jitsi_server_url)- if realm.notifications_stream and not realm.notifications_stream.deactivated:- notifications_stream = realm.notifications_stream+ notifications_stream = realm.get_notifications_stream()+ if notifications_stream:state["realm_notifications_stream_id"] = notifications_stream.idelse:state["realm_notifications_stream_id"] = -1