TF-4141 Show AI action tag in list emails
This commit is contained in:
@@ -138,6 +138,9 @@ class PresentationEmail with EquatableMixin, SearchSnippetMixin {
|
||||
|
||||
bool get isSubscribed => keywords?.containsKey(KeyWordIdentifierExtension.unsubscribeMail) == true;
|
||||
|
||||
bool get hasNeedAction =>
|
||||
keywords?.containsKey(KeyWordIdentifierExtension.needActionMail) == true;
|
||||
|
||||
bool get isAnsweredAndForwarded => isAnswered && isForwarded;
|
||||
|
||||
bool get withAttachments => hasAttachment == true;
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:model/email/read_actions.dart';
|
||||
|
||||
extension KeyWordIdentifierExtension on KeyWordIdentifier {
|
||||
static final unsubscribeMail = KeyWordIdentifier('\$unsubscribe');
|
||||
static final needActionMail = KeyWordIdentifier('\$need-action');
|
||||
|
||||
String generatePath() {
|
||||
return '${PatchObject.keywordsProperty}/$value';
|
||||
|
||||
Reference in New Issue
Block a user