recipient_row: Show globe icon for web public streams.

This commit is contained in:
Aman Agrawal 2021-11-20 03:19:39 +00:00 committed by Tim Abbott
parent e8ec42bf8a
commit a7b2c7f7ea
2 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,7 @@ function populate_group_from_message_container(group, message_container) {
group.background_color = stream_data.get_color(message_container.msg.stream);
group.color_class = color_class.get_css_class(group.background_color);
group.invite_only = stream_data.get_invite_only(message_container.msg.stream);
group.is_web_public = stream_data.is_web_public(message_container.msg.stream_id);
group.topic = message_container.msg.topic;
group.match_topic = util.get_match_topic(message_container.msg);
group.stream_url = message_container.stream_url;

View File

@ -11,6 +11,9 @@
{{#if invite_only}}
<i class="fa fa-lock recipient-row-stream-icon" title="{{t 'This is a private stream' }}" aria-label="{{t 'This is a private stream' }}"></i>
{{/if}}
{{#if is_web_public}}
<i class="fa fa-globe recipient-row-stream-icon" title="{{t 'This is a web public stream' }}" aria-label="{{t 'This is a web public stream' }}"></i>
{{/if}}
{{display_recipient}}</a>
{{! hidden narrow icon for copy-pasting }}