TF-3450 Refactor image and text preview

This commit is contained in:
DatDang
2025-02-26 11:19:25 +07:00
committed by Dat H. Pham
parent ef1d37f7ac
commit aabfe6a3a5
14 changed files with 94 additions and 285 deletions
@@ -46,4 +46,7 @@ extension AttachmentExtension on Attachment {
bool get isText => (type?.isTextFile() ?? false)
|| name?.endsWith('.txt') == true
|| name?.endsWith('.md') == true;
bool get isJson => (type?.isJsonFile() ?? false)
|| name?.endsWith('.json') == true;
}