TF-2602 Set charset for attachment with mimeType=text/plain when sent email on mobile

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-02-23 11:57:54 +07:00
committed by Dat H. Pham
parent b5d8776af9
commit 514bc578ec
8 changed files with 70 additions and 26 deletions
+12 -1
View File
@@ -20,6 +20,7 @@ class Attachment with EquatableMixin {
final MediaType? type;
final String? cid;
final ContentDisposition? disposition;
final String? charset;
Attachment({
this.partId,
@@ -29,6 +30,7 @@ class Attachment with EquatableMixin {
this.type,
this.cid,
this.disposition,
this.charset,
});
bool noCid() => cid == null || cid?.isEmpty == true;
@@ -59,7 +61,16 @@ class Attachment with EquatableMixin {
}
@override
List<Object?> get props => [partId, blobId, size, name, type, cid, disposition];
List<Object?> get props => [
partId,
blobId,
size,
name,
type,
cid,
disposition,
charset
];
}
enum ContentDisposition {