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:
@@ -34,7 +34,13 @@ class UploadResponse with EquatableMixin {
|
||||
}
|
||||
|
||||
extension UploadResponseExtension on UploadResponse {
|
||||
Attachment toAttachment(String nameFile) {
|
||||
return Attachment(blobId: blobId, size: UnsignedInt(size), name: nameFile, type: type);
|
||||
Attachment toAttachment({required String nameFile, String? charset}) {
|
||||
return Attachment(
|
||||
blobId: blobId,
|
||||
size: UnsignedInt(size),
|
||||
name: nameFile,
|
||||
type: type,
|
||||
charset: charset
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user