mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-04 03:56:33 +08:00
fix(draft-store): Don't require plugins to implement finalizeSession
This commit is contained in:
parent
21ba15c5a5
commit
4a1638906b
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ class DraftStore
|
|||
# Give third-party plugins an opportunity to sanitize draft data
|
||||
_runExtensionsBeforeSend: (session) =>
|
||||
Promise.each @extensions(), (ext) ->
|
||||
ext.finalizeSessionBeforeSending({session})
|
||||
ext.finalizeSessionBeforeSending?({session})
|
||||
.return(session)
|
||||
|
||||
_onRemoveFile: ({file, messageClientId}) =>
|
||||
|
|
Loading…
Reference in a new issue