TF-3171 Fix duplicate signature button on Composer view changed
This commit is contained in:
@@ -1452,6 +1452,11 @@ class ComposerController extends BaseController with DragDropFileMixin implement
|
|||||||
try {
|
try {
|
||||||
if (emailContent == null) return;
|
if (emailContent == null) return;
|
||||||
final emailDocument = parse(emailContent);
|
final emailDocument = parse(emailContent);
|
||||||
|
|
||||||
|
final existedSignatureButton = emailDocument.querySelector(
|
||||||
|
'button.tmail-signature-button');
|
||||||
|
if (existedSignatureButton != null) return;
|
||||||
|
|
||||||
final signature = emailDocument.querySelector('div.tmail-signature');
|
final signature = emailDocument.querySelector('div.tmail-signature');
|
||||||
if (signature == null) return;
|
if (signature == null) return;
|
||||||
_restoringSignatureButton = true;
|
_restoringSignatureButton = true;
|
||||||
@@ -1935,6 +1940,7 @@ class ComposerController extends BaseController with DragDropFileMixin implement
|
|||||||
|
|
||||||
|
|
||||||
void handleInitHtmlEditorWeb(String initContent) async {
|
void handleInitHtmlEditorWeb(String initContent) async {
|
||||||
|
if (_isEmailBodyLoaded) return;
|
||||||
log('ComposerController::handleInitHtmlEditorWeb:');
|
log('ComposerController::handleInitHtmlEditorWeb:');
|
||||||
_isEmailBodyLoaded = true;
|
_isEmailBodyLoaded = true;
|
||||||
richTextWebController?.editorController.setFullScreen();
|
richTextWebController?.editorController.setFullScreen();
|
||||||
|
|||||||
Reference in New Issue
Block a user