💄 Optimize attachment editor controls

This commit is contained in:
2024-09-27 00:12:30 +08:00
parent bbee825cf4
commit fdc68fc5e1
5 changed files with 66 additions and 61 deletions

View File

@ -34,7 +34,7 @@ class Attachment {
String alt;
String mimetype;
String hash;
String destination;
int destination;
bool isAnalyzed;
bool isUploaded;
Map<String, dynamic>? metadata;

View File

@ -36,7 +36,7 @@ Attachment _$AttachmentFromJson(Map<String, dynamic> json) => Attachment(
alt: json['alt'] as String,
mimetype: json['mimetype'] as String,
hash: json['hash'] as String,
destination: json['destination'] as String,
destination: (json['destination'] as num).toInt(),
isAnalyzed: json['is_analyzed'] as bool,
isUploaded: json['is_uploaded'] as bool,
metadata: json['metadata'] as Map<String, dynamic>?,