mirror of https://github.com/zulip/zulip.git
compose_validate: Show error banner for archived streams.
This commit is contained in:
parent
c73038edea
commit
1577d45575
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue