mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(draft-account-switching): Need to totally delete draft threadId and replyToMessageId
This commit is contained in:
parent
65361251b1
commit
13087a0dc8
1 changed files with 4 additions and 0 deletions
|
@ -116,5 +116,9 @@ class SyncbackDraftTask extends Task
|
|||
newDraft = new Message(draft)
|
||||
newDraft.id = generateTempId()
|
||||
newDraft.accountId = newAccountId if newAccountId
|
||||
|
||||
delete newDraft.threadId
|
||||
delete newDraft.replyToMessageId
|
||||
|
||||
DatabaseStore.swapModel(oldModel: draft, newModel: newDraft, localId: @draftLocalId).then =>
|
||||
Promise.resolve(newDraft)
|
||||
|
|
Loading…
Reference in a new issue