From f5792aae2e712d57d9f83285d71b6e4e59b16d8d Mon Sep 17 00:00:00 2001 From: EthanBlackburn Date: Tue, 8 Sep 2015 14:16:51 -0700 Subject: [PATCH] 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 --- .../thread-list/lib/thread-list-quick-actions.cjsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx b/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx index cdbb96a7e..444e067b4 100644 --- a/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx +++ b/internal_packages/thread-list/lib/thread-list-quick-actions.cjsx @@ -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