fix(draft-account-switching): Need to totally delete draft threadId and replyToMessageId

This commit is contained in:
Ben Gotow 2015-08-25 12:23:27 -07:00
parent 65361251b1
commit 13087a0dc8

View file

@ -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)