Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

left_sidebar: Fix order of group pm recipients in left sidebar.

Pratik Chandaeeae4346258a
diff --git a/web/src/people.ts b/web/src/people.ts
index ee516d3522c..f6ad43a33af 100644
--- a/web/src/people.ts
+++ b/web/src/people.ts
@@ -432,8 +432,10 @@ export function get_recipients(user_ids_string: string): string {
return my_full_name();
}
- const names = get_display_full_names(other_ids).sort();
- return names.join(", ");
+ const names = get_display_full_names(other_ids);
+ const sorted_names = names.sort(util.make_strcmp());
+
+ return sorted_names.join(", ");
}
export function pm_reply_user_string(message: Message | MessageWithBooleans): string | undefined {