💄 Optimized drafts

This commit is contained in:
2025-06-25 00:01:52 +08:00
parent 568d70fffb
commit b89cffeb18
11 changed files with 148 additions and 169 deletions

View File

@ -14,6 +14,9 @@ sealed class UniversalFile with _$UniversalFile {
required UniversalFileType type,
}) = _UniversalFile;
factory UniversalFile.fromJson(Map<String, dynamic> json) =>
_$UniversalFileFromJson(json);
bool get isOnCloud => data is SnCloudFile;
bool get isOnDevice => !isOnCloud;