Merge pull request #1071 from greenart7c3/main

Fix edit draft not working when using the quick action menu
This commit is contained in:
Vitor Pamplona
2024-09-09 13:33:54 -04:00
committed by GitHub

View File

@@ -206,6 +206,7 @@ fun NoteQuickActionMenu(
if (editDraftDialog.value) { if (editDraftDialog.value) {
NewPostView( NewPostView(
onClose = { onClose = {
onDismiss()
editDraftDialog.value = false editDraftDialog.value = false
}, },
accountViewModel = accountViewModel, accountViewModel = accountViewModel,
@@ -427,7 +428,6 @@ private fun RenderMainPopup(
Icons.Default.Edit, Icons.Default.Edit,
stringRes(R.string.edit_draft), stringRes(R.string.edit_draft),
) { ) {
onDismiss()
onWantsToEditDraft() onWantsToEditDraft()
} }
} else { } else {