diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.ts index 8a9d49b8f8..c27760e8ad 100644 --- a/web/src/message_list_view.ts +++ b/web/src/message_list_view.ts @@ -255,6 +255,7 @@ function get_users_for_recipient_row(message: Message): RecipientRowUser[] { assert(user_ids !== undefined); const users = user_ids.map((user_id) => { let full_name; + const is_bot = people.is_valid_bot_user(user_id); if (muted_users.is_user_muted(user_id)) { full_name = $t({defaultMessage: "Muted user"}); } else { @@ -263,6 +264,7 @@ function get_users_for_recipient_row(message: Message): RecipientRowUser[] { return { full_name, should_add_guest_user_indicator: people.should_add_guest_user_indicator(user_id), + is_bot, }; }); diff --git a/web/styles/message_header.css b/web/styles/message_header.css index d6ac871226..1c086997b5 100644 --- a/web/styles/message_header.css +++ b/web/styles/message_header.css @@ -142,6 +142,13 @@ .private_message_header_name { overflow: hidden; text-overflow: ellipsis; + + i.zulip-icon-bot { + vertical-align: middle; + position: relative; + top: -1px; + padding-left: 0.3em; + } } } } diff --git a/web/templates/recipient_row.hbs b/web/templates/recipient_row.hbs index 56955f27d3..a6eaa718dd 100644 --- a/web/templates/recipient_row.hbs +++ b/web/templates/recipient_row.hbs @@ -94,7 +94,8 @@ {{~#tr}}You and {{#*inline "z-user-names"}} {{#each recipient_users}} - {{~full_name}}{{#if should_add_guest_user_indicator}} ({{t 'guest'}}){{/if}}{{#unless @last}}, {{/unless~}} + {{~full_name}}{{#if is_bot}}{{/if}} + {{~#if should_add_guest_user_indicator}} ({{t 'guest'}}){{/if}}{{#unless @last}}, {{/unless~}} {{/each}} {{/inline}} {{/tr~}}