Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
events: Remove incorrect line from new-stream handler.
Tim Abbott59b68aaa9873
diff --git a/zerver/lib/events.py b/zerver/lib/events.pyindex 472907cc34f..df2550a57da 100644--- a/zerver/lib/events.py+++ b/zerver/lib/events.py@@ -521,8 +521,13 @@ def apply_event(state: Dict[str, Any],stream_data = copy.deepcopy(stream)if include_subscribers:stream_data['subscribers'] = []++ # We know the stream has no traffic, and this+ # field is not present in the event.+ #+ # TODO: Probably this should just be added to the event.stream_data['stream_weekly_traffic'] = None- stream_data['stream_post_policy'] = Stream.STREAM_POST_POLICY_EVERYONE+# Add stream to never_subscribed (if not invite_only)state['never_subscribed'].append(stream_data)state['streams'].append(stream)