From 6f7001e32b5c76473420476d3120f58a1f464d14 Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 23 May 2024 16:40:52 +1000 Subject: [PATCH] fix: contact list should not be case sensitive --- .../leftpane/overlay/choose-action/ContactsListWithBreaks.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/leftpane/overlay/choose-action/ContactsListWithBreaks.tsx b/ts/components/leftpane/overlay/choose-action/ContactsListWithBreaks.tsx index 5771e90be..99da48086 100644 --- a/ts/components/leftpane/overlay/choose-action/ContactsListWithBreaks.tsx +++ b/ts/components/leftpane/overlay/choose-action/ContactsListWithBreaks.tsx @@ -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 = []; 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;