TF-1810 Add StoreDetailedEmailToCacheInteractor to store detailed email to cache

(cherry picked from commit 60a91537f7ea1225b5ca67f6dd9ef358b33939da)
This commit is contained in:
dab246
2023-05-10 12:06:20 +07:00
committed by Dat Vu
parent d6a5c88281
commit 892fceb037
28 changed files with 440 additions and 75 deletions
@@ -448,22 +448,6 @@ class ComposerController extends BaseController {
_autoFocusFieldWhenLauncher();
}
String? getContentEmail(BuildContext context) {
if (composerArguments.value != null) {
switch(composerArguments.value!.emailActionType) {
case EmailActionType.reply:
case EmailActionType.forward:
case EmailActionType.replyAll:
return getEmailContentQuotedAsHtml(context, composerArguments.value!);
case EmailActionType.edit:
return getEmailContentDraftsAsHtml();
default:
return '';
}
}
return '';
}
String? _getHeaderEmailQuoted(BuildContext context, ComposerArguments arguments) {
final presentationEmail = arguments.presentationEmail;
if (presentationEmail != null) {