Bug Fix: Emoji displaynames aren't correctly initialed

#979
This commit is contained in:
giomfo 2017-02-05 23:18:09 +01:00
parent 6bcb88252c
commit 5961c187cd

View file

@ -78,7 +78,7 @@ static UILabel* backgroundLabel = nil;
if (text.length > 0)
{
firstChar = [[text substringToIndex:1] uppercaseString];
firstChar = [[text substringToIndex:NSMaxRange([text rangeOfComposedCharacterSequenceAtIndex:0])] uppercaseString];
}
return firstChar;