TF-3985 Allow retry get paywall url when paywall is not available

This commit is contained in:
dab246
2025-09-10 15:22:23 +07:00
committed by Dat H. Pham
parent fa2d304c8d
commit 9a84f12690
2 changed files with 52 additions and 5 deletions
@@ -309,6 +309,7 @@ class MailboxDashBoardController extends ReloadableController
int minInputLengthAutocomplete = AppConfig.defaultMinInputLengthAutocomplete;
EmailSortOrderType currentSortOrder = SearchEmailFilter.defaultSortOrder;
PaywallUrlPattern? paywallUrlPattern;
bool isRetryGetPaywallUrl = false;
final StreamController<Either<Failure, Success>> _progressStateController =
StreamController<Either<Failure, Success>>.broadcast();
@@ -551,6 +552,8 @@ class MailboxDashBoardController extends ReloadableController
tryGetAuthenticatedAccountToUseApp();
} else if (isGetTokenOIDCFailure(failure)) {
backToHomeScreen();
} else if (failure is GetPaywallUrlFailure) {
loadPaywallUrlFailure();
} else {
super.handleFailureViewState(failure);
}