From 90d79f87802fa8a0311acbfa54f2f2cb859c8f5e Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 24 Apr 2024 08:31:14 +0700 Subject: [PATCH] Fix part of the content is lost when replying or forwarding emails --- lib/features/composer/presentation/composer_controller.dart | 4 ++++ pubspec.lock | 6 +++--- pubspec.yaml | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/features/composer/presentation/composer_controller.dart b/lib/features/composer/presentation/composer_controller.dart index 2177ed502..df60f5019 100644 --- a/lib/features/composer/presentation/composer_controller.dart +++ b/lib/features/composer/presentation/composer_controller.dart @@ -1563,6 +1563,10 @@ class ComposerController extends BaseController with DragDropFileMixin { if (newIdentity.signatureAsString.isNotEmpty == true) { await _applySignature(newIdentity.signatureAsString.asSignatureHtml()); } + + if (PlatformInfo.isMobile) { + await htmlEditorApi?.onDocumentChanged(); + } } void _applyBccEmailAddressFromIdentity(Set listEmailAddress) { diff --git a/pubspec.lock b/pubspec.lock index bce43d73a..6ab8f5d3b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -425,11 +425,11 @@ packages: source: path version: "1.0.0+1" enough_html_editor: - dependency: transitive + dependency: "direct overridden" description: path: "." - ref: cnb_supported - resolved-ref: "69996e32a708a62b8a613f2524c5635f5c556617" + ref: "bugfix/fix-lost-part-of-content-with-long-text" + resolved-ref: "273f3817c1f93a5fbdebbc09580a303338237f21" url: "https://github.com/linagora/enough_html_editor.git" source: git version: "0.0.5" diff --git a/pubspec.yaml b/pubspec.yaml index 3b82ed947..348146e91 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -274,6 +274,11 @@ dependency_overrides: url: https://github.com/linagora/flutter_file_picker ref: email_supported_5.3.1 + enough_html_editor: + git: + url: https://github.com/linagora/enough_html_editor.git + ref: bugfix/fix-lost-part-of-content-with-long-text + # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec