TF-934 Optimize function in thread controller

This commit is contained in:
dab246
2022-11-10 13:59:15 +07:00
committed by Dat H. Pham
parent 171b791449
commit aa8b80975e
5 changed files with 68 additions and 872 deletions
@@ -185,7 +185,7 @@ mixin EmailActionController on ViewAsDialogActionMixin {
}
void deleteEmailPermanently(BuildContext context, PresentationEmail email) {
if (responsiveUtils.isMobile(context)) {
if (responsiveUtils.isScreenWithShortestSide(context)) {
(ConfirmationDialogActionSheetBuilder(context)
..messageText(DeleteActionType.single.getContentDialog(context))
..onCancelAction(AppLocalizations.of(context).cancel, () => popBack())