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