mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-19 09:37:52 +08:00
fix(sending): Since we have a unique index on clientId, no need to delete draft after sending
This commit is contained in:
parent
b056ddd514
commit
182333e7f4
1 changed files with 0 additions and 3 deletions
|
@ -67,9 +67,6 @@ class SendDraftTask extends Task
|
||||||
Actions.sendDraftSuccess
|
Actions.sendDraftSuccess
|
||||||
draftClientId: @draftClientId
|
draftClientId: @draftClientId
|
||||||
newMessage: message
|
newMessage: message
|
||||||
DestroyDraftTask = require './destroy-draft'
|
|
||||||
task = new DestroyDraftTask(draftClientId: @draftClientId)
|
|
||||||
Actions.queueTask(task)
|
|
||||||
return Promise.resolve(Task.Status.Finished)
|
return Promise.resolve(Task.Status.Finished)
|
||||||
|
|
||||||
.catch APIError, (err) =>
|
.catch APIError, (err) =>
|
||||||
|
|
Loading…
Add table
Reference in a new issue