Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Use getUserLocale for getGroupDisplayNameFromUserIds function (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander authored and hmhealey committed Aug 16, 2017
1 parent 8420169 commit f73b68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/channel_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export function getGroupDisplayNameFromUserIds(userIds, profiles, currentUserId,
});

function sortUsernames(a, b) {
const locale = profiles[currentUserId].locale;
const locale = getUserLocale(currentUserId, profiles);
return a.localeCompare(b, locale, {numeric: true});
}

Expand Down

0 comments on commit f73b68b

Please sign in to comment.