mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
subscription: Include archived channels in streams list.
`is_archived` field is added to the stream and types. Include a new `archived_channeels` client capability, to allow clients to access data on archived channels, without breaking backwards-compatibility for existing clients that don't know how to handle these. Also, included `exclude_archived` parameter to `/get-streams`, which defaults to `true` as basic clients may not be interested in archived streams.
This commit is contained in:
@@ -435,6 +435,7 @@ def send_subscription_add_events(
|
||||
stream_weekly_traffic=stream_dict["stream_weekly_traffic"],
|
||||
subscribers=stream_subscribers,
|
||||
# Fields from Stream.API_FIELDS
|
||||
is_archived=stream_dict["is_archived"],
|
||||
can_remove_subscribers_group=stream_dict["can_remove_subscribers_group"],
|
||||
creator_id=stream_dict["creator_id"],
|
||||
date_created=stream_dict["date_created"],
|
||||
|
||||
Reference in New Issue
Block a user