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:
Anders Kaseorg
2024-10-08 14:08:36 -07:00
committed by Tim Abbott
parent 44fde64c42
commit 9c2f38193d
4 changed files with 4 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ type StreamContext = {
invite_only: boolean;
is_web_public: boolean;
stream_name: string;
pin_to_top: boolean | undefined;
pin_to_top: boolean;
is_muted: boolean;
stream_color: string;
stream_header_color: string;