TF-2928 Show confirm dialog & handle exception when reload browser or loss of connection

This commit is contained in:
dab246
2024-07-12 18:58:50 +07:00
committed by Dat H. Pham
parent 2a22cb1174
commit eca11b3506
13 changed files with 198 additions and 97 deletions
@@ -220,11 +220,10 @@ class ThreadController extends BaseController with EmailActionController {
}
@override
void handleExceptionAction({Failure? failure, Exception? exception}) {
super.handleExceptionAction(failure: failure, exception: exception);
logError('ThreadController::handleExceptionAction(): failure: $failure | exception: $exception');
void handleUrgentException({Failure? failure, Exception? exception}) {
_resetLoadingMore();
clearState();
super.handleUrgentException(failure: failure, exception: exception);
}
void _resetLoadingMore() {