Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view_ui: Use is_valid_bot_user instead of get_by_user_id.
Aman Agrawalb02c487dba52
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.tsindex 0fb9f29008f..88ba20576e4 100644--- a/web/src/recent_view_ui.ts+++ b/web/src/recent_view_ui.ts@@ -832,8 +832,7 @@ function format_conversation(conversation_data: ConversationData): ConversationCif (!is_group) {const user_id = Number.parseInt(last_msg.to_user_ids, 10);const is_deactivated = !people.is_active_user_or_system_bot(user_id);- const user = people.get_by_user_id(user_id);- if (user.is_bot) {+ if (people.is_valid_bot_user(user_id)) {// We display the bot icon rather than a user circle for bots.is_bot = true;} else {