fixing the need for a new coroutine startup

This commit is contained in:
Vitor Pamplona 2024-07-30 13:50:08 -04:00
parent bc8e5aa458
commit 286583bba2

View File

@ -189,10 +189,8 @@ fun NoteDropDownMenu(
text = { Text(stringRes(R.string.copy_text)) },
onClick = {
val lastNoteVersion = (editState?.value as? GenericLoadable.Loaded)?.loaded?.modificationToShow?.value ?: note
scope.launch(Dispatchers.IO) {
accountViewModel.decrypt(lastNoteVersion) { clipboardManager.setText(AnnotatedString(it)) }
onDismiss()
}
accountViewModel.decrypt(lastNoteVersion) { clipboardManager.setText(AnnotatedString(it)) }
onDismiss()
},
)
DropdownMenuItem(