changed to reset all necessary state, regardless of editingMode, in clearCurrentMessageIntent handler

This commit is contained in:
gavine99
2025-02-19 13:32:35 +11:00
parent a8b02459c4
commit 302dadd077
@@ -1102,15 +1102,6 @@ class ComposeViewModel @Inject constructor(
view.setDraft("") view.setDraft("")
// if choosing contacts, don't remove attachments. they may have come from an // if choosing contacts, don't remove attachments. they may have come from an
// external share // external share
if (it.editingMode)
newState {
copy(
editingMode = false,
hasError = !sendAsGroup,
scheduled = 0,
)
}
else
newState { newState {
copy( copy(
editingMode = false, editingMode = false,