mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
fix(unsubscribe): Leave canTrashThreads for now, in use by plugins
This commit is contained in:
parent
8d08a85716
commit
982e3b2dec
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,9 @@ class MailboxPerspective
|
|||
accounts = AccountStore.accountsForItems(threads)
|
||||
return _.every(accounts, (acc) -> acc.canArchiveThreads())
|
||||
|
||||
canTrashThreads: (threads) =>
|
||||
@canMoveThreadsTo(threads, 'trash')
|
||||
|
||||
canMoveThreadsTo: (threads, standardCategoryName) =>
|
||||
return false if @categoriesSharedName() is standardCategoryName
|
||||
return _.every AccountStore.accountsForItems(threads), (acc) ->
|
||||
|
|
Loading…
Reference in a new issue