Skip to content

Commit

Permalink
compose_validate: Show error banner for archived streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchi-t authored and timabbott committed Oct 25, 2024
1 parent c73038e commit 1577d45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/compose_validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1577d45

Please sign in to comment.