From 6bc1b6b28ab2d20b77f9a823f1f00f7854757afe Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sun, 28 May 2023 16:03:15 -0400 Subject: [PATCH] Loading reply from launch and not withContent --- .../com/vitorpamplona/amethyst/ui/note/ReplyInformation.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReplyInformation.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReplyInformation.kt index 19512a828..8d30b3c4d 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReplyInformation.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ReplyInformation.kt @@ -19,14 +19,14 @@ import com.vitorpamplona.amethyst.R import com.vitorpamplona.amethyst.model.* import com.vitorpamplona.amethyst.ui.components.CreateClickableTextWithEmoji import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.withContext +import kotlinx.coroutines.launch @Composable fun ReplyInformation(replyTo: List?, mentions: List, account: Account, nav: (String) -> Unit) { var dupMentions by remember { mutableStateOf?>(null) } LaunchedEffect(Unit) { - withContext(Dispatchers.IO) { + launch(Dispatchers.IO) { dupMentions = mentions.mapNotNull { LocalCache.checkGetOrCreateUser(it) } } } @@ -119,7 +119,7 @@ fun ReplyInformationChannel(replyTo: List?, mentions: List, channe var sortedMentions by remember { mutableStateOf?>(null) } LaunchedEffect(Unit) { - withContext(Dispatchers.IO) { + launch(Dispatchers.IO) { sortedMentions = mentions .mapNotNull { LocalCache.checkGetOrCreateUser(it) } .toSet()