fix: contact list should not be case sensitive

pull/3083/head
William Grant 11 months ago
parent a159616514
commit 6f7001e32b

@ -80,8 +80,8 @@ const ContactListItemSection = () => {
// if the item is a string we consider it to be a break of that string
const directContactsByNameWithBreaks: Array<DirectContactsByNameType | string> = [];
directContactsByName.forEach(m => {
if (m.displayName && m.displayName[0] !== currentChar) {
currentChar = m.displayName[0];
if (m.displayName && m.displayName[0].toLowerCase() !== currentChar) {
currentChar = m.displayName[0].toLowerCase();
directContactsByNameWithBreaks.push(currentChar.toUpperCase());
} else if (!m.displayName && currentChar !== unknownSection) {
currentChar = unknownSection;

Loading…
Cancel
Save