TF-2930 Fix inline attachment lost in draft emails

This commit is contained in:
dab246
2024-07-17 13:25:58 +07:00
committed by Dat H. Pham
parent 1fc3b76f94
commit b0ee2f24ba
14 changed files with 90 additions and 58 deletions
@@ -5,11 +5,13 @@ import 'package:model/email/attachment.dart';
class EmailLoaded with EquatableMixin {
final String htmlContent;
final List<Attachment> attachments;
final List<Attachment> inlineImages;
final Email? emailCurrent;
EmailLoaded({
required this.htmlContent,
required this.attachments,
required this.inlineImages,
this.emailCurrent,
});
@@ -17,6 +19,7 @@ class EmailLoaded with EquatableMixin {
List<Object?> get props => [
htmlContent,
attachments,
inlineImages,
emailCurrent
];
}