Skip to content

Commit

Permalink
TF-3171 Fix duplicate signature button on Composer view changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed Oct 3, 2024
1 parent 284f633 commit 6cbace7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/features/composer/presentation/composer_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,11 @@ class ComposerController extends BaseController with DragDropFileMixin implement
try {
if (emailContent == null) return;
final emailDocument = parse(emailContent);

final existedSignatureButton = emailDocument.querySelector(
'button.tmail-signature-button');
if (existedSignatureButton != null) return;

final signature = emailDocument.querySelector('div.tmail-signature');
if (signature == null) return;
await _applySignature(signature.innerHtml);
Expand Down

0 comments on commit 6cbace7

Please sign in to comment.