Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_list_view: Remove undefined option for two parameters.

evykassirer26da3300ec9b
diff --git a/web/src/message_list.js b/web/src/message_list.js
index c626224fc69..63df20b8e00 100644
--- a/web/src/message_list.js
+++ b/web/src/message_list.js
@@ -421,8 +421,8 @@ export class MessageList {
just_unsubscribed,
can_toggle_subscription,
page_params.is_spectator,
- invite_only,
- is_web_public,
+ invite_only ?? false,
+ is_web_public ?? false,
);
}
diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.ts
index 6b1e7c40031..42fdc89a5c8 100644
--- a/web/src/message_list_view.ts
+++ b/web/src/message_list_view.ts
@@ -1934,8 +1934,8 @@ export class MessageListView {
just_unsubscribed: boolean,
can_toggle_subscription: boolean,
is_spectator: boolean,
- invite_only: boolean | undefined,
- is_web_public: boolean | undefined,
+ invite_only: boolean,
+ is_web_public: boolean,
): void {
// This is not the only place we render bookends; see also the
// partial in message_group.hbs, which do not set is_trailing_bookend.