mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +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()) {
|
if (cleanedName.isEmpty()) {
|
||||||
return "#";
|
return "#";
|
||||||
} else {
|
} else {
|
||||||
return String.valueOf(cleanedName.charAt(0));
|
return new StringBuilder().appendCodePoint(cleanedName.codePointAt(0)).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user