Merge pull request #6608 from thundernest/avoid_crash

Avoid crash when opening drafts from the message list widget
This commit is contained in:
cketti 2023-01-27 11:53:36 +01:00 committed by GitHub
commit 694b26e1e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)