mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +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) =>
|
_onDataChanged: (change) =>
|
||||||
return unless change.objectClass is Message.name
|
return unless change.objectClass is Message.name
|
||||||
containsDraft = _.some(change.objects, (msg) -> msg.draft)
|
return unless @_view
|
||||||
return unless containsDraft and @_view
|
|
||||||
@_view.invalidate({change: change, shallow: true})
|
@_view.invalidate({change: change, shallow: true})
|
||||||
|
|
||||||
module.exports = new DraftListStore()
|
module.exports = new DraftListStore()
|
||||||
|
|
Loading…
Reference in a new issue