File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
lib/features/composer/presentation Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1452,6 +1452,11 @@ class ComposerController extends BaseController with DragDropFileMixin implement
14521452 try {
14531453 if (emailContent == null ) return ;
14541454 final emailDocument = parse (emailContent);
1455+
1456+ final existedSignatureButton = emailDocument.querySelector (
1457+ 'button.tmail-signature-button' );
1458+ if (existedSignatureButton != null ) return ;
1459+
14551460 final signature = emailDocument.querySelector ('div.tmail-signature' );
14561461 if (signature == null ) return ;
14571462 _restoringSignatureButton = true ;
@@ -1935,6 +1940,7 @@ class ComposerController extends BaseController with DragDropFileMixin implement
19351940
19361941
19371942 void handleInitHtmlEditorWeb (String initContent) async {
1943+ if (_isEmailBodyLoaded) return ;
19381944 log ('ComposerController::handleInitHtmlEditorWeb:' );
19391945 _isEmailBodyLoaded = true ;
19401946 richTextWebController? .editorController.setFullScreen ();
You can’t perform that action at this time.
0 commit comments