From 0be93b85193df257fbe2cae5824cec78fe40ad4c Mon Sep 17 00:00:00 2001 From: roanster007 Date: Thu, 11 Apr 2024 02:13:58 +0530 Subject: [PATCH] stream_settings: Fix error on stream setting update when compose closed. Previously, when stream settings were updated, without opening the compose box, assertion error were thrown. This error was a result of a regression in compose_recipient, due to an extra assert statement added during its typescript migration in 25ff0d441858aa5c8f0bf51b47ad2a872141c262. This is fixed by removing the statement. --- web/src/compose_recipient.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.ts index 1c3a314b33..02adddd7e6 100644 --- a/web/src/compose_recipient.ts +++ b/web/src/compose_recipient.ts @@ -226,7 +226,6 @@ export function on_compose_select_recipient_update(): void { if (curr_message_type === "stream") { // Update stream name in the recipient box. const stream_id = compose_state.stream_id(); - assert(stream_id !== undefined); update_recipient_label(stream_id); }