inbox_ui: Sort names, not HTML.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-03-27 13:56:09 -07:00 committed by Tim Abbott
parent bec8fccf75
commit bd4a095fc3
1 changed files with 6 additions and 7 deletions

View File

@ -170,13 +170,12 @@ function format_dm(user_ids_string, unread_count, latest_msg_id) {
const reply_to = people.user_ids_string_to_emails_string(user_ids_string);
const rendered_dm_with = recipient_ids
.map((recipient_id) =>
render_user_with_status_icon({
.map((recipient_id) => ({
name: people.get_display_full_name(recipient_id),
status_emoji_info: user_status.get_status_emoji(recipient_id),
}),
)
.sort();
}))
.sort((a, b) => util.strcmp(a.name, b.name))
.map((user_info) => render_user_with_status_icon(user_info));
let user_circle_class;
let is_bot = false;