Fix appear save draft dialog when reload editing composer
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -27,6 +27,7 @@ class ComposerDataSourceImpl extends ComposerDataSource {
|
||||
cid,
|
||||
fileInfo.fileExtension,
|
||||
fileInfo.fileName,
|
||||
fileInfo.mimeType,
|
||||
filePath: fileInfo.filePath,
|
||||
maxWidth: maxWidth,
|
||||
compress: compress);
|
||||
|
||||
@@ -113,4 +113,14 @@ class ComposerRepositoryImpl extends ComposerRepository {
|
||||
return Future.value(emailContent);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Future<String> removeStyleLazyLoadDisplayInlineImages({required String emailContent}) {
|
||||
try {
|
||||
return _htmlDataSource.removeStyleLazyLoadDisplayInlineImages(emailContent: emailContent);
|
||||
} catch (e) {
|
||||
logError('ComposerRepositoryImpl::removeStyleLazyLoadDisplayInlineImages: Exception: $e');
|
||||
return Future.value(emailContent);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user