Skip to content

Commit

Permalink
TF-2646 Remove DeleteAllPermanently & AllUnSpam action for select…
Browse files Browse the repository at this point in the history
…ion all email in search
  • Loading branch information
dab246 committed May 2, 2024
1 parent 60c7f13 commit ae94214
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class TopBarThreadSelection extends StatelessWidget{
bool get canDeletePermanently => listEmail.isAllCanDeletePermanently(mapMailbox);

bool get canDeleteAllPermanently => isSelectAllEmailsEnabled
&& selectedMailbox != null
&& (selectedMailbox?.isTrash == true
|| selectedMailbox?.isSpam == true
|| selectedMailbox?.isDrafts == true);
Expand Down
4 changes: 0 additions & 4 deletions lib/features/thread/presentation/thread_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1638,8 +1638,6 @@ class ThreadController extends BaseController with EmailActionController, PopupM
_searchEmailFilter.toSearchEmailFilterRequest(moreFilterCondition: _getFilterCondition()),
);
break;
case EmailActionType.deleteAllPermanently:
break;
case EmailActionType.markAllAsStarred:
mailboxDashBoardController.markAllSearchAsStarred(
_session!,
Expand All @@ -1655,8 +1653,6 @@ class ThreadController extends BaseController with EmailActionController, PopupM
_searchEmailFilter.toSearchEmailFilterRequest(moreFilterCondition: _getFilterCondition()),
);
break;
case EmailActionType.allUnSpam:
break;
default:
break;
}
Expand Down

0 comments on commit ae94214

Please sign in to comment.