TF-2592 Hide toast message when get error token expired
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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!,
|
||||
|
||||
Reference in New Issue
Block a user