TF-1865: Modify sending email in composer when tap item and Long press item
(cherry picked from commit 5cfda1d92f38da9e5e4fab1413e6e52229a51639)
This commit is contained in:
@@ -235,7 +235,9 @@ class ComposerController extends BaseController {
|
||||
@override
|
||||
void onReady() async {
|
||||
_initEmail();
|
||||
_getAllIdentities();
|
||||
if (isNetworkConnectionAvailable) {
|
||||
_getAllIdentities();
|
||||
}
|
||||
if (!BuildUtils.isWeb) {
|
||||
Future.delayed(const Duration(milliseconds: 500), () =>
|
||||
_checkContactPermission());
|
||||
@@ -1125,8 +1127,9 @@ class ComposerController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
if(arguments.emailContents != null && arguments.emailContents!.isNotEmpty) {
|
||||
emailContentsViewState.value = Right(GetEmailContentFromCacheSuccess(arguments.emailContents!, []));
|
||||
if (arguments.emailContents != null && arguments.emailContents!.isNotEmpty) {
|
||||
_emailContents = arguments.emailContents;
|
||||
emailContentsViewState.value = Right(GetEmailContentSuccess(_emailContents!, [], [], arguments.presentationEmail?.toEmail()));
|
||||
} else {
|
||||
final session = mailboxDashBoardController.sessionCurrent;
|
||||
final baseDownloadUrl = mailboxDashBoardController.sessionCurrent?.getDownloadUrl(jmapUrl: _dynamicUrlInterceptors.jmapUrl);
|
||||
@@ -1162,11 +1165,9 @@ class ComposerController extends BaseController {
|
||||
success.attachments.listAttachmentsDisplayedOutSide);
|
||||
}
|
||||
emailContentsViewState.value = Right(success);
|
||||
_emailContents = success.emailContents.asHtmlString;
|
||||
_emailContents = success.emailContents;
|
||||
}
|
||||
|
||||
String? getEmailContentDraftsAsHtml() => _emailContents;
|
||||
|
||||
String getEmailAddressSender() {
|
||||
final arguments = composerArguments.value;
|
||||
if (arguments != null) {
|
||||
|
||||
Reference in New Issue
Block a user