compose_validate: Show error banner for archived streams.

This commit is contained in:
sanchi-t 2024-08-04 12:17:53 +05:30 committed by Tim Abbott
parent c73038edea
commit 1577d45575
1 changed files with 4 additions and 0 deletions

View File

@ -569,6 +569,10 @@ export function validate_stream_message_mentions(opts: StreamWildcardOptions): b
} }
export function validate_stream_message_address_info(sub: StreamSubscription): boolean { 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) { if (sub.subscribed) {
return true; return true;
} }