TF-2592 Hide toast message when get error token expired

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-02-15 14:13:02 +07:00
committed by Dat PHAM HOANG
parent 600e3c24b1
commit 8fb7ca0f01
2 changed files with 3 additions and 9 deletions
+1 -8
View File
@@ -155,14 +155,7 @@ abstract class BaseController extends GetxController
void handleExceptionAction({Failure? failure, Exception? exception}) {
logError('BaseController::handleExceptionAction():failure: $failure | exception: $exception');
if (exception is BadCredentialsException) {
if (currentOverlayContext != null && currentContext != null) {
appToast.showToastErrorMessage(
currentOverlayContext!,
AppLocalizations.of(currentContext!).badCredentials
);
}
} else if (exception is ConnectionError) {
if (exception is ConnectionError) {
if (currentOverlayContext != null && currentContext != null) {
appToast.showToastErrorMessage(
currentOverlayContext!,