mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Fix unresponsive soft-logout in the legacy flow. (#6329)
- Delegate logic to the OnboardingCoordinator like the new flow does. - Reset the credentials on every presentation of authVC. - Make sure not to set the credentials after deleting the data.
This commit is contained in:
@@ -487,9 +487,15 @@
|
||||
{
|
||||
MXLogDebug(@"[MasterTabBarController] showAuthenticationScreenAfterSoftLogout");
|
||||
|
||||
AuthenticationService.shared.softLogoutCredentials = credentials;
|
||||
|
||||
[self showOnboardingFlowAndResetSessionFlags:NO];
|
||||
// This method can be called after the user chooses to clear their data as the MXSession
|
||||
// is opened to call logout from. So we only set the credentials when authentication isn't
|
||||
// in progress to prevent a second soft logout screen being shown.
|
||||
if (!self.onboardingCoordinatorBridgePresenter && !self.isOnboardingCoordinatorPreparing)
|
||||
{
|
||||
AuthenticationService.shared.softLogoutCredentials = credentials;
|
||||
|
||||
[self showOnboardingFlowAndResetSessionFlags:NO];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)showOnboardingFlowAndResetSessionFlags:(BOOL)resetSessionFlags
|
||||
|
||||
Reference in New Issue
Block a user