TF-185 [BUG] Fix can not display all parts of email which have multiple html part

This commit is contained in:
dab246
2021-10-15 16:14:41 +07:00
committed by Dat H. Pham
parent a6f2a23cec
commit ececc65a26
16 changed files with 282 additions and 154 deletions
@@ -9,9 +9,9 @@ class HtmlDataSourceImpl extends HtmlDataSource {
HtmlDataSourceImpl(this._htmlAnalyzer);
@override
Future<String> transformToHtml(EmailContent emailContent) {
Future<EmailContent> transformEmailContent(EmailContent emailContent) {
return Future.sync(() async {
return await _htmlAnalyzer.transformToHtml(emailContent);
return await _htmlAnalyzer.transformEmailContent(emailContent);
}).catchError((error) {
throw error;
});