mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2075 App | Fix | Fix crash in emojifier (#720)
This commit is contained in:
parent
b52219a99e
commit
5879cfa570
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ object Emojifier {
|
|||
try {
|
||||
var result = search(unicode)
|
||||
if (result == null) {
|
||||
if (unicode.last() == SEPARATOR) {
|
||||
if (unicode.lastOrNull() == SEPARATOR) {
|
||||
val sb = StringBuilder()
|
||||
unicode.forEachIndexed { index, char ->
|
||||
if (index < unicode.length.dec()) sb.append(char)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue