diff --git a/internal_packages/thread-search/lib/search-mailbox-perspective.es6 b/internal_packages/thread-search/lib/search-mailbox-perspective.es6 index 0de3b40e1..c55e19152 100644 --- a/internal_packages/thread-search/lib/search-mailbox-perspective.es6 +++ b/internal_packages/thread-search/lib/search-mailbox-perspective.es6 @@ -1,8 +1,7 @@ import _ from 'underscore' -import {AccountStore, TaskFactory, MailboxPerspective} from 'nylas-exports' +import {AccountStore, CategoryStore, TaskFactory, MailboxPerspective} from 'nylas-exports' import SearchQuerySubscription from './search-query-subscription' - class SearchMailboxPerspective extends MailboxPerspective { constructor(accountIds, searchQuery) { @@ -38,6 +37,9 @@ class SearchMailboxPerspective extends MailboxPerspective { const account = AccountStore.accountForId(accountId) return [account.defaultFinishedCategory()] }, + categoriesToRemove: (accountId) => { + return [CategoryStore.getInboxCategory(accountId)] + }, }) } }