Skip to content

Commit

Permalink
TF-2084 Hide Forward action
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui committed Sep 29, 2023
1 parent a111368 commit 21001eb
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import 'package:flutter/cupertino.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';

Expand Down Expand Up @@ -27,4 +25,21 @@ enum EmailRuleFilterAction {
return AppLocalizations.of(context).forwardTo;
}
}

bool getSupported() {
switch(this) {
case EmailRuleFilterAction.moveMessage:
return true;
case EmailRuleFilterAction.maskAsSeen:
return true;
case EmailRuleFilterAction.startIt:
return true;
case EmailRuleFilterAction.rejectIt:
return true;
case EmailRuleFilterAction.markAsSpam:
return true;
case EmailRuleFilterAction.forwardTo:
return false;
}
}
}

0 comments on commit 21001eb

Please sign in to comment.