mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 16:03:25 +02:00
Moves DropDown state to the IO thread.
This commit is contained in:
@@ -1110,12 +1110,14 @@ fun NoteDropDownMenu(note: Note, popupExpanded: Boolean, onDismiss: () -> Unit,
|
|||||||
}
|
}
|
||||||
|
|
||||||
LaunchedEffect(key1 = note) {
|
LaunchedEffect(key1 = note) {
|
||||||
state = DropDownParams(
|
withContext(Dispatchers.IO) {
|
||||||
accountViewModel.isFollowing(note.author),
|
state = DropDownParams(
|
||||||
accountViewModel.isInPrivateBookmarks(note),
|
accountViewModel.isFollowing(note.author),
|
||||||
accountViewModel.isInPublicBookmarks(note),
|
accountViewModel.isInPrivateBookmarks(note),
|
||||||
accountViewModel.isLoggedUser(note.author)
|
accountViewModel.isInPublicBookmarks(note),
|
||||||
)
|
accountViewModel.isLoggedUser(note.author)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DropdownMenu(
|
DropdownMenu(
|
||||||
|
Reference in New Issue
Block a user