From 1577d4557524eaf821b9d12cd70e6a1d0815b244 Mon Sep 17 00:00:00 2001 From: sanchi-t Date: Sun, 4 Aug 2024 12:17:53 +0530 Subject: [PATCH] compose_validate: Show error banner for archived streams. --- web/src/compose_validate.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/compose_validate.ts b/web/src/compose_validate.ts index 683c40d4cd..926749d84d 100644 --- a/web/src/compose_validate.ts +++ b/web/src/compose_validate.ts @@ -569,6 +569,10 @@ export function validate_stream_message_mentions(opts: StreamWildcardOptions): b } export function validate_stream_message_address_info(sub: StreamSubscription): boolean { + if (sub.is_archived) { + compose_banner.show_stream_does_not_exist_error(sub.name); + return false; + } if (sub.subscribed) { return true; }