mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(drafts): Refresh view when draft becomes message
This commit is contained in:
parent
d3baa36259
commit
6f580f8e99
1 changed files with 1 additions and 2 deletions
|
@ -47,8 +47,7 @@ class DraftListStore extends NylasStore
|
|||
|
||||
_onDataChanged: (change) =>
|
||||
return unless change.objectClass is Message.name
|
||||
containsDraft = _.some(change.objects, (msg) -> msg.draft)
|
||||
return unless containsDraft and @_view
|
||||
return unless @_view
|
||||
@_view.invalidate({change: change, shallow: true})
|
||||
|
||||
module.exports = new DraftListStore()
|
||||
|
|
Loading…
Reference in a new issue