mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
stream_data: Always initialize pin_to_top.
This simplifies the StreamSubscription type, and parallels how we always initialize every other property that isn’t in NeverSubscribedStream (audible_notifications, desktop_notifications, email_notifications, push_notifications, wildcard_mentions_notify, color, is_muted). email_address was already optional. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
44fde64c42
commit
9c2f38193d
@@ -736,6 +736,7 @@ export function create_sub_from_server_data(
|
||||
render_subscribers: !realm.realm_is_zephyr_mirror_realm || attrs.invite_only,
|
||||
newly_subscribed: false,
|
||||
is_muted: false,
|
||||
pin_to_top: false,
|
||||
desktop_notifications: null,
|
||||
audible_notifications: null,
|
||||
push_notifications: null,
|
||||
|
||||
Reference in New Issue
Block a user