TF-2189 Create collapsed signature when edit email in Sending Queue on iOS

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 4f5e82173c2a6070d89f3debc00bc35ffb3021db)
This commit is contained in:
dab246
2023-10-20 09:40:35 +07:00
committed by Dat H. Pham
parent c9a79ee702
commit 52942e0049
2 changed files with 20 additions and 1 deletions
@@ -291,6 +291,14 @@ class ComposerController extends BaseController {
}
}
@override
void handleExceptionAction({Failure? failure, Exception? exception}) {
super.handleExceptionAction(failure: failure, exception: exception);
if (failure is GetAllIdentitiesFailure) {
_handleGetAllIdentitiesFailure(failure);
}
}
void _listenStreamEvent() {
uploadInlineImageWorker = ever(uploadController.uploadInlineViewState, (state) {
log('ComposerController::_listenStreamEvent()::uploadInlineImageWorker: $state');
@@ -2089,4 +2097,15 @@ class ComposerController extends BaseController {
log('ComposerController::addAttachmentFromDropZone: $attachment');
uploadController.initializeUploadAttachments([attachment]);
}
void _handleGetAllIdentitiesFailure(GetAllIdentitiesFailure failure) async {
log('ComposerController::_handleGetAllIdentitiesFailure:failure: $failure');
if (composerArguments.value?.emailActionType == EmailActionType.editSendingEmail && PlatformInfo.isMobile) {
final signatureContent = await htmlEditorApi?.getSignatureContent();
log('ComposerController::_handleGetAllIdentitiesFailure:signatureContent: $signatureContent');
if (signatureContent?.isNotEmpty == true) {
await _applySignature(signatureContent!);
}
}
}
}
+1 -1
View File
@@ -381,7 +381,7 @@ packages:
description:
path: "."
ref: email_supported
resolved-ref: "56d820aa845c98a3a809161c02fe8fff033dd2ae"
resolved-ref: c2247abea5baa644fc60c123df7bb7d6a81ed81f
url: "https://github.com/linagora/enough_html_editor.git"
source: git
version: "0.0.5"