mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
Support non-BMP chars (e.g. emojis) in avatars
Closes #6527 Fixes #6522 // FREEBIE
This commit is contained in:
parent
cd56f03e07
commit
c389a9d3ce
@ -42,7 +42,7 @@ public class GeneratedContactPhoto implements ContactPhoto {
|
||||
if (cleanedName.isEmpty()) {
|
||||
return "#";
|
||||
} else {
|
||||
return String.valueOf(cleanedName.charAt(0));
|
||||
return new StringBuilder().appendCodePoint(cleanedName.codePointAt(0)).toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user