TF-3450 Add image attachment preview

This commit is contained in:
DatDang
2025-02-19 16:22:00 +07:00
committed by Dat H. Pham
parent 5cecdd2e6a
commit 3645fe58f9
7 changed files with 137 additions and 1 deletions
@@ -40,4 +40,6 @@ extension AttachmentExtension on Attachment {
DownloadTaskId get downloadTaskId => DownloadTaskId(blobId!.value);
bool get isHTMLFile => type?.isHTMLFile(fileName: name) ?? false;
bool get isImage => type?.isImageFile() ?? false;
}