Merge pull request #6608 from thundernest/avoid_crash
Avoid crash when opening drafts from the message list widget
This commit is contained in:
commit
694b26e1e9
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue