TF-3924 Thread Detail Keep html view alive after thread load

This commit is contained in:
DatDang
2025-07-31 13:42:20 +07:00
committed by Dat H. Pham
parent 8690c245a5
commit d83e92bc5f
3 changed files with 6 additions and 1 deletions
@@ -221,6 +221,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
String get ownEmailAddress => mailboxDashBoardController.ownEmailAddress.value;
GlobalObjectKey? get htmlViewKey => _threadDetailController?.expandedEmailHtmlViewKey;
SingleEmailController(
this._getEmailContentInteractor,
this._markAsEmailReadInteractor,
@@ -348,7 +348,7 @@ class EmailView extends GetWidget<SingleEmailController> {
return Padding(
padding: EmailViewStyles.emailContentPadding,
child: HtmlContentViewerOnWeb(
key: ValueKey(tag),
key: controller.htmlViewKey,
widthContent: bodyConstraints.maxWidth,
contentHtml: allEmailContents,
mailtoDelegate: controller.openMailToLink,