diff --git a/web/src/pm_list_data.js b/web/src/pm_list_data.js index aea111687e..187823019b 100644 --- a/web/src/pm_list_data.js +++ b/web/src/pm_list_data.js @@ -46,6 +46,7 @@ export function get_conversations() { let user_circle_class; let status_emoji_info; + let is_bot = false; if (!is_group) { const user_id = Number.parseInt(user_ids_string, 10); @@ -53,10 +54,8 @@ export function get_conversations() { const recipient_user_obj = people.get_by_user_id(user_id); if (recipient_user_obj.is_bot) { - // Bots do not have status emoji, and are modeled as - // always present. We may want to use this space for a - // bot icon in the future. - user_circle_class = "user_circle_green"; + // We display the bot icon rather than a user circle for bots. + is_bot = true; } else { status_emoji_info = user_status.get_status_emoji(user_id); } @@ -72,6 +71,7 @@ export function get_conversations() { status_emoji_info, user_circle_class, is_group, + is_bot, }; display_objects.push(display_object); } diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css index 172966d926..79d18f4cca 100644 --- a/web/styles/left_sidebar.css +++ b/web/styles/left_sidebar.css @@ -621,6 +621,10 @@ li.topic-list-item { position: relative; top: 0; } + + .zulip-icon.zulip-icon-bot { + padding: 3px 0; + } } .zero-pm-unreads .pm-box, diff --git a/web/templates/pm_list_item.hbs b/web/templates/pm_list_item.hbs index 408d573ee2..66e41c9401 100644 --- a/web/templates/pm_list_item.hbs +++ b/web/templates/pm_list_item.hbs @@ -4,6 +4,8 @@