From 0536c141b7702019c79b2a2a0bbf9736492d399c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 5 Mar 2025 15:23:37 -0500 Subject: [PATCH] Speeding up the loading of emojis --- .../main/java/com/vitorpamplona/amethyst/model/Account.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index 36f52680a..cbdc6873d 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -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()), ) }