TF-1809: Handle sync data from cache and network when get email contents
(cherry picked from commit 896059cd5b29c62c2cf34621fe35d7b23a54acf4)
This commit is contained in:
@@ -8,13 +8,13 @@ import 'package:tmail_ui_user/features/offline_mode/model/attachment_hive_cache.
|
||||
extension AttachmentExtension on AttachmentHiveCache {
|
||||
Attachment toAttachment() {
|
||||
return Attachment(
|
||||
partId: PartId(partId!),
|
||||
blobId: Id(blobId!),
|
||||
size: UnsignedInt(size!),
|
||||
name: name,
|
||||
type: MediaType.parse(type!),
|
||||
cid: cid,
|
||||
disposition: disposition?.toContentDisposition(),
|
||||
partId: partId != null ? PartId(partId!) : null,
|
||||
blobId: blobId != null ? Id(blobId!) : null,
|
||||
size: size != null ? UnsignedInt(size!) : null,
|
||||
name: name,
|
||||
type: type != null ? MediaType.parse(type!) : null,
|
||||
cid: cid,
|
||||
disposition: disposition?.toContentDisposition(),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,9 @@ extension DetailedEmailExtension on DetailedEmail {
|
||||
);
|
||||
}
|
||||
|
||||
String get folderPath => CachingConstants.emailContentFolderName;
|
||||
String get newEmailFolderPath => CachingConstants.newEmailContentFolderName;
|
||||
|
||||
String get openedEmailFolderPath => CachingConstants.openedEmailContentFolderNamee;
|
||||
|
||||
DetailedEmail fromEmailContentPath(String path) {
|
||||
return DetailedEmail(
|
||||
|
||||
Reference in New Issue
Block a user