mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Remove old methods from onboarding coordinator and tabbar controller
This commit is contained in:
@@ -63,16 +63,6 @@ typedef NS_ENUM(NSUInteger, MasterTabBarIndex) {
|
||||
*/
|
||||
- (void)showOnboardingFlow;
|
||||
|
||||
/**
|
||||
Display the onboarding flow in order to pursue a registration process by using a predefined set
|
||||
of parameters.
|
||||
|
||||
If the provided registration parameters are not supported, the default onboarding flow will be used.
|
||||
|
||||
@param parameters the set of parameters.
|
||||
*/
|
||||
- (void)showOnboardingFlowWithRegistrationParameters:(NSDictionary*)parameters;
|
||||
|
||||
/**
|
||||
Display the onboarding flow configured to log back into a soft logout session.
|
||||
|
||||
|
||||
@@ -67,8 +67,6 @@
|
||||
@property (nonatomic, readwrite) id addAccountObserver;
|
||||
@property (nonatomic, readwrite) id removeAccountObserver;
|
||||
|
||||
// The parameters to pass to the Authentication view controller.
|
||||
@property (nonatomic, readwrite) NSDictionary *authViewControllerRegistrationParameters;
|
||||
@property (nonatomic, readwrite) MXCredentials *softLogoutCredentials;
|
||||
|
||||
@property (nonatomic) BOOL reviewSessionAlertHasBeenDisplayed;
|
||||
@@ -478,12 +476,6 @@
|
||||
- (void)presentOnboardingFlow
|
||||
{
|
||||
OnboardingCoordinatorBridgePresenterParameters *parameters = [[OnboardingCoordinatorBridgePresenterParameters alloc] init];
|
||||
// Forward parameters if any
|
||||
if (self.authViewControllerRegistrationParameters)
|
||||
{
|
||||
parameters.externalRegistrationParameters = self.authViewControllerRegistrationParameters;
|
||||
self.authViewControllerRegistrationParameters = nil;
|
||||
}
|
||||
if (self.softLogoutCredentials)
|
||||
{
|
||||
parameters.softLogoutCredentials = self.softLogoutCredentials;
|
||||
@@ -547,36 +539,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Sets up authentication with parameters detected in a universal link. For example
|
||||
https://app.element.io/#/register/?hs_url=matrix.example.com&is_url=identity.example.com
|
||||
*/
|
||||
|
||||
- (void)showOnboardingFlowWithRegistrationParameters:(NSDictionary *)parameters
|
||||
{
|
||||
if (self.onboardingCoordinatorBridgePresenter)
|
||||
{
|
||||
MXLogDebug(@"[MasterTabBarController] Universal link: Forward registration parameter to the existing AuthViewController");
|
||||
[self.onboardingCoordinatorBridgePresenter updateWithExternalRegistrationParameters:parameters];
|
||||
}
|
||||
else
|
||||
{
|
||||
MXLogDebug(@"[MasterTabBarController] Universal link: Prompt to logout current sessions and open AuthViewController to complete the registration");
|
||||
|
||||
// Keep a ref on the params
|
||||
self.authViewControllerRegistrationParameters = parameters;
|
||||
|
||||
// Prompt to logout. It will then display AuthViewController if the user is logged out.
|
||||
[[AppDelegate theDelegate] logoutWithConfirmation:YES completion:^(BOOL isLoggedOut) {
|
||||
if (!isLoggedOut)
|
||||
{
|
||||
// Reset temporary params
|
||||
self.authViewControllerRegistrationParameters = nil;
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)showSoftLogoutOnboardingFlowWithCredentials:(MXCredentials*)credentials;
|
||||
{
|
||||
MXLogDebug(@"[MasterTabBarController] showAuthenticationScreenAfterSoftLogout");
|
||||
|
||||
Reference in New Issue
Block a user