Speeding up the loading of emojis

This commit is contained in:
Vitor Pamplona 2025-03-05 15:23:37 -05:00
parent 16331d268d
commit 0536c141b7

View File

@ -1147,9 +1147,7 @@ class Account(
.stateIn(
scope,
SharingStarted.Eagerly,
runBlocking(Dispatchers.Default) {
convertEmojiSelectionPack(getEmojiPackSelection())
},
convertEmojiSelectionPack(getEmojiPackSelection()),
)
}
@ -1187,9 +1185,7 @@ class Account(
.stateIn(
scope,
SharingStarted.Eagerly,
runBlocking(Dispatchers.Default) {
mergePack(convertEmojiSelectionPack(getEmojiPackSelection())?.map { it.value }?.toTypedArray() ?: emptyArray())
},
mergePack(convertEmojiSelectionPack(getEmojiPackSelection())?.map { it.value }?.toTypedArray() ?: emptyArray()),
)
}