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()