diff --git a/api_docs/changelog.md b/api_docs/changelog.md index 5627eaf5e7..f948a172fe 100644 --- a/api_docs/changelog.md +++ b/api_docs/changelog.md @@ -18,6 +18,14 @@ clients should check the `zulip_feature_level` field, present in the /register`](/api/register-queue) responses, to determine the API format used by the Zulip server that they are interacting with. +## Changes in Zulip 7.5 + +**Feature level 186** + +* [`POST /register`](/api/register-queue): `streams` field in the response + now included web-public streams as well. This change was backported from + Zulip 8.0, where it was introduced in feature level 205. + ## Changes in Zulip 7.0 **Feature level 185** diff --git a/zerver/lib/events.py b/zerver/lib/events.py index 6db628faf6..f0571b486c 100644 --- a/zerver/lib/events.py +++ b/zerver/lib/events.py @@ -565,7 +565,9 @@ def fetch_initial_state_data( # places. if user_profile is not None: state["streams"] = do_get_streams( - user_profile, include_all_active=user_profile.is_realm_admin + user_profile, + include_web_public=True, + include_all_active=user_profile.is_realm_admin, ) else: # TODO: This line isn't used by the web app because it @@ -889,7 +891,9 @@ def apply_event( if "streams" in state: state["streams"] = do_get_streams( - user_profile, include_all_active=user_profile.is_realm_admin + user_profile, + include_web_public=True, + include_all_active=user_profile.is_realm_admin, ) if state["is_guest"]: diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index 3a2db9f66a..340da3a66a 100644 --- a/zerver/openapi/zulip.yaml +++ b/zerver/openapi/zulip.yaml @@ -11559,6 +11559,9 @@ paths: For organization administrators, this will include all private streams in the organization. + + **Changes**: As of Zulip 7.5 (feature level 186), this will include all + web-public streams in the organization as well. realm_default_streams: type: array items: