TF-1608 Add messageId/inReplyTo/references to properties in jmap request get email content

(cherry picked from commit 2948f3f19aa9727dd19fdef08085d434daac1945)
This commit is contained in:
dab246
2023-09-20 15:03:49 +07:00
committed by Dat H. Pham
parent ebae1fc4e0
commit c198b4e21d
3 changed files with 14 additions and 6 deletions
@@ -93,13 +93,15 @@ class EmailAPI with HandleSetErrorMixin {
.execute();
final resultList = result.parse<GetEmailResponse>(
getEmailInvocation.methodCallId, GetEmailResponse.deserialize);
getEmailInvocation.methodCallId,
GetEmailResponse.deserialize
);
return Future.sync(() async {
if (resultList?.list.isNotEmpty == true) {
return resultList!.list.first;
}).catchError((error) {
throw error;
});
} else {
throw NotFoundEmailException();
}
}
Future<bool> sendEmail(