fix(drafts): Refresh view when draft becomes message

This commit is contained in:
Ben Gotow 2015-12-10 13:43:27 -08:00
parent d3baa36259
commit 6f580f8e99

View file

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