TF-4069 Do not show toast message when disable vacation automatically

This commit is contained in:
dab246
2025-10-14 15:30:13 +07:00
committed by Dat H. Pham
parent d6606aeb48
commit e04b88f87c
7 changed files with 34 additions and 14 deletions
@@ -2062,10 +2062,13 @@ class MailboxDashBoardController extends ReloadableController
void _handleUpdateVacationSuccess(UpdateVacationSuccess success) {
if (success.listVacationResponse.isNotEmpty) {
if (currentContext != null && currentOverlayContext != null) {
if (!success.isAuto &&
currentContext != null &&
currentOverlayContext != null) {
appToast.showToastSuccessMessage(
currentOverlayContext!,
AppLocalizations.of(currentContext!).yourVacationResponderIsDisabledSuccessfully);
AppLocalizations.of(currentContext!).yourVacationResponderIsDisabledSuccessfully,
);
}
vacationResponse.value = success.listVacationResponse.first;
log('MailboxDashBoardController::_handleUpdateVacationSuccess(): $vacationResponse');