compose: Show globe icon for web public streams.

Fixes #20285.
This commit is contained in:
Aman Agrawal
2021-11-20 03:20:21 +00:00
committed by Tim Abbott
parent a7b2c7f7ea
commit d9338a68d1
5 changed files with 34 additions and 6 deletions

View File

@@ -581,6 +581,14 @@ export function get_invite_only(stream_name) {
return sub.invite_only;
}
export function is_web_public_by_stream_name(stream_name) {
const sub = get_sub(stream_name);
if (sub === undefined) {
return false;
}
return sub.is_web_public;
}
export function set_realm_default_streams(realm_default_streams) {
default_stream_ids.clear();