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.

base_page_params: Add missing parameters to home_params_schema.

Anders Kaseorgc3a86d114a5a
diff --git a/web/src/base_page_params.ts b/web/src/base_page_params.ts
index 64c63190ea0..892324b053a 100644
--- a/web/src/base_page_params.ts
+++ b/web/src/base_page_params.ts
@@ -25,6 +25,8 @@ const home_params_schema = z.looseObject({
corporate_enabled: z.boolean(),
embedded_bots_enabled: z.boolean(),
furthest_read_time: z.nullable(z.number()),
+ insecure_desktop_app: z.boolean(),
+ is_node_test: z.optional(z.literal(true)),
is_spectator: z.boolean(),
// `language_cookie_name` is only sent for spectators.
language_cookie_name: z.optional(z.string()),
@@ -49,6 +51,7 @@ const home_params_schema = z.looseObject({
show_try_zulip_modal: z.boolean(),
state_data: z.nullable(state_data_schema),
translation_data: z.record(z.string(), z.string()),
+ warn_no_email: z.boolean(),
});
// Sync this with analytics.views.stats.render_stats.
diff --git a/web/src/navbar_alerts.ts b/web/src/navbar_alerts.ts
index d178dc965b9..a65912a8c0d 100644
--- a/web/src/navbar_alerts.ts
+++ b/web/src/navbar_alerts.ts
@@ -425,7 +425,7 @@ export function initialize(): void {
if (should_show_server_upgrade_banner(ls)) {
open_navbar_banner_and_resize(SERVER_NEEDS_UPGRADE_BANNER);
}
- } else if (page_params.warn_no_email === true && current_user.is_admin) {
+ } else if (page_params.warn_no_email && current_user.is_admin) {
// if email has not been set up and the user is the admin,
// display a warning to tell them to set up an email server.
open_navbar_banner_and_resize(CONFIGURE_OUTGOING_MAIL_BANNER);