diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 481b028fbc..4f76a9cc61 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -5074,7 +5074,7 @@ def gather_subscriptions_helper(user_profile: UserProfile, if ns_stream_dict['id'] in never_subscribed_stream_ids] for stream in never_subscribed_streams: - is_public = (not stream['invite_only']) + is_public = not stream['invite_only'] if is_public or user_profile.is_realm_admin: stream_dict = build_stream_dict_for_never_sub( stream=stream,