TF-4050 refactor: move attachment preview & download logic to download controller

This commit is contained in:
dab246
2025-10-23 12:14:39 +07:00
committed by Dat H. Pham
parent 1398a30ed6
commit 92286b48e1
33 changed files with 1055 additions and 651 deletions
@@ -48,4 +48,8 @@ extension AttachmentExtension on Attachment {
bool get isJson => (type?.isJsonFile() ?? false)
|| name?.endsWith('.json') == true;
bool get isPreviewSupported {
return isImage || isText || isJson || isPDFFile || isEMLFile || isHTMLFile;
}
}