TF-3416 Handle open EML attachment in EML previewer

This commit is contained in:
dab246
2025-01-13 15:53:58 +07:00
committed by Dat H. Pham
parent 0ce99c745c
commit aa7fded1ff
28 changed files with 473 additions and 99 deletions
@@ -14,6 +14,7 @@ class PreviewEmailEMLRequest with EquatableMixin {
final Locale locale;
final AppLocalizations appLocalizations;
final String baseDownloadUrl;
final bool isShared;
PreviewEmailEMLRequest({
required this.accountId,
@@ -23,10 +24,13 @@ class PreviewEmailEMLRequest with EquatableMixin {
required this.locale,
required this.appLocalizations,
required this.baseDownloadUrl,
this.isShared = true,
});
String get keyStored => blobId.value;
String get title => '${email.subject?.trim().isNotEmpty == true ? email.subject : appLocalizations.app_name} - ${userName.value}';
@override
List<Object?> get props => [
accountId,
@@ -36,5 +40,6 @@ class PreviewEmailEMLRequest with EquatableMixin {
locale,
appLocalizations,
baseDownloadUrl,
isShared,
];
}