page_params: Add narrow_stream to type.

This commit is contained in:
evykassirer
2023-12-13 00:03:12 -08:00
committed by Anders Kaseorg
parent ea697cdd93
commit 86fd0864a7
2 changed files with 2 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ export const page_params: {
max_icon_file_size_mib: number;
max_logo_file_size_mib: number;
muted_users: {id: number; timestamp: number}[];
narrow_stream?: string;
needs_tutorial: boolean;
page_load_time: number;
promote_sponsoring_zulip: boolean;

View File

@@ -105,7 +105,7 @@ test_ui("validate_stream_message_address_info", ({mock_template}) => {
assert.ok(!compose_validate.validate_stream_message_address_info("social"));
assert.ok(user_not_subscribed_rendered);
page_params.narrow_stream = false;
page_params.narrow_stream = "social";
channel.post = (payload) => {
assert.equal(payload.data.stream, "social");
payload.data.subscribed = true;