mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 21:02:33 +02:00
Moves firstIsTaggedHash search to the IO thread.
This commit is contained in:
@@ -582,8 +582,10 @@ fun DisplayFollowingHashtagsInPost(
|
|||||||
var firstTag by remember { mutableStateOf<String?>(null) }
|
var firstTag by remember { mutableStateOf<String?>(null) }
|
||||||
|
|
||||||
LaunchedEffect(key1 = noteEvent) {
|
LaunchedEffect(key1 = noteEvent) {
|
||||||
|
withContext(Dispatchers.IO) {
|
||||||
firstTag = noteEvent.firstIsTaggedHashes(account.followingTagSet())
|
firstTag = noteEvent.firstIsTaggedHashes(account.followingTagSet())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Column() {
|
Column() {
|
||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||||
|
Reference in New Issue
Block a user