mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
Archive button no longer appears in sent folder
Summary: Archive button doesnt appear in sent folder Test Plan: tested manually Reviewers: evan, bengotow Reviewed By: bengotow Maniphest Tasks: T3428 Differential Revision: https://phab.nylas.com/D1987
This commit is contained in:
parent
16eb6fd07b
commit
1ba1df8103
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class ThreadListQuickActions extends React.Component
|
|||
newProps.thread.id isnt @props?.thread.id
|
||||
|
||||
_shouldDisplayArchiveButton: =>
|
||||
if @props.categoryId != CategoryStore.getStandardCategory('archive')?.id and @props.categoryId != CategoryStore.getStandardCategory('trash')?.id
|
||||
if @props.categoryId not in [CategoryStore.getStandardCategory('archive')?.id, CategoryStore.getStandardCategory('trash')?.id, CategoryStore.getStandardCategory('sent')?.id]
|
||||
if AccountStore.current().usesLabels()
|
||||
if @props.thread.labels.length == 1 and (@props.thread.labels[0].name == "archive" or @props.thread.labels[0].name == "all")
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue