Moves firstIsTaggedHash search to the IO thread.

This commit is contained in:
Vitor Pamplona
2023-04-18 08:45:02 -04:00
parent e4fc00669e
commit 47e2683aa3

View File

@@ -582,8 +582,10 @@ fun DisplayFollowingHashtagsInPost(
var firstTag by remember { mutableStateOf<String?>(null) }
LaunchedEffect(key1 = noteEvent) {
withContext(Dispatchers.IO) {
firstTag = noteEvent.firstIsTaggedHashes(account.followingTagSet())
}
}
Column() {
Row(verticalAlignment = Alignment.CenterVertically) {