Reconnect when sending email with error 401

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-15 12:04:05 +07:00
committed by Dat H. Pham
parent 7678f100ae
commit 92a9fe88a5
2 changed files with 52 additions and 32 deletions
+4 -4
View File
@@ -175,7 +175,7 @@ abstract class BaseController extends GetxController
if (exception is ConnectionError) {
_handleConnectionErrorException();
} else if (exception is BadCredentialsException) {
_handleBadCredentialsException();
handleBadCredentialsException();
}
}
@@ -186,7 +186,7 @@ abstract class BaseController extends GetxController
} else if (exception is ConnectionError) {
_handleConnectionErrorException();
} else if (exception is BadCredentialsException) {
_handleBadCredentialsException();
handleBadCredentialsException();
}
}
@@ -219,8 +219,8 @@ abstract class BaseController extends GetxController
}
}
void _handleBadCredentialsException() {
log('$runtimeType::_handleBadCredentialsException:');
void handleBadCredentialsException() {
log('$runtimeType::handleBadCredentialsException:');
if (twakeAppManager.hasComposer) {
_performSaveAndReconnection();
} else {