diff --git a/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart b/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart index ce95d41261..95ed647163 100644 --- a/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart +++ b/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart @@ -1,5 +1,3 @@ - - import 'package:flutter/cupertino.dart'; import 'package:tmail_ui_user/main/localizations/app_localizations.dart'; @@ -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; + } + } } \ No newline at end of file