fix(search): Do not clear search mail view filter on account switch

Fixes #94
This commit is contained in:
Ben Gotow 2015-12-04 19:01:52 -08:00
parent 386a599fbc
commit 8a3633d509

View file

@ -16,7 +16,7 @@ class FocusedMailViewStore extends NylasStore
_onCategoryStoreChanged: ->
if not @_mailView
@_setMailView(@_defaultMailView())
else if not CategoryStore.byId(@_mailView.categoryId())
else if @_mailView.categoryId() and not CategoryStore.byId(@_mailView.categoryId())
@_setMailView(@_defaultMailView())
_onFocusMailView: (filter) =>