mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-10 23:15:00 +08:00
fix(snooze): Hide N1-Snoozed from the category picker
This commit is contained in:
parent
4c9a02d9e6
commit
a1db17e3c9
1 changed files with 3 additions and 3 deletions
|
@ -315,13 +315,13 @@ class CategoryPicker extends React.Component
|
|||
currentCategoryIds = _.pluck(currentCategories, 'id')
|
||||
|
||||
if @_account?.usesLabels()
|
||||
hiddenCategories = ["all", "drafts", "sent", "archive", "starred", "important"]
|
||||
hiddenCategories = ["all", "drafts", "sent", "archive", "starred", "important", "N1-Snoozed"]
|
||||
hiddenCategories.push("inbox") if allInInbox
|
||||
return false if category.divider
|
||||
else if @_account?.usesFolders()
|
||||
hiddenCategories = ["drafts", "sent"]
|
||||
hiddenCategories = ["drafts", "sent", "N1-Snoozed"]
|
||||
|
||||
return (category.name not in hiddenCategories) and not (category.id in currentCategoryIds)
|
||||
return (category.name not in hiddenCategories) and (category.displayName not in hiddenCategories) and (category.id not in currentCategoryIds)
|
||||
|
||||
_allInInbox: (usageCount, numThreads) ->
|
||||
return unless @_account?
|
||||
|
|
Loading…
Reference in a new issue