Avoid crash when opening drafts from the message list widget

This commit is contained in:
cketti 2023-01-26 12:52:44 +01:00
parent 679a2648c7
commit d342f6ee35

View file

@ -953,6 +953,7 @@ open class MessageList :
val draftsFolderId = account.draftsFolderId
if (draftsFolderId != null && folderId == draftsFolderId) {
displayMode = DisplayMode.MESSAGE_LIST
MessageActions.actionEditDraft(this, messageReference)
} else {
val fragment = MessageViewContainerFragment.newInstance(messageReference)