From 4c0a89dc7890ca4b2abb8d8ef2af2bb4208605f3 Mon Sep 17 00:00:00 2001 From: Doug Date: Tue, 26 Nov 2024 16:41:30 +0000 Subject: [PATCH] Re-arrange method other. (No other changes are made to the methods). --- .../Setup/CrossSigningSetupCoordinator.swift | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Riot/Modules/CrossSigning/Setup/CrossSigningSetupCoordinator.swift b/Riot/Modules/CrossSigning/Setup/CrossSigningSetupCoordinator.swift index 4be29d75c0..74b7f967ea 100644 --- a/Riot/Modules/CrossSigning/Setup/CrossSigningSetupCoordinator.swift +++ b/Riot/Modules/CrossSigning/Setup/CrossSigningSetupCoordinator.swift @@ -53,22 +53,6 @@ final class CrossSigningSetupCoordinator: CrossSigningSetupCoordinatorType { } // MARK: - Private methods - - private func showReauthentication(authenticationSession: MXAuthenticationSession) { - let setupCrossSigningRequest = self.crossSigningService.setupCrossSigningRequest() - - let reauthenticationParameters = ReauthenticationCoordinatorParameters(session: parameters.session, - presenter: parameters.presenter, - title: parameters.title, - message: parameters.message, - authenticationSession: authenticationSession) - - let coordinator = ReauthenticationCoordinator(parameters: reauthenticationParameters) - coordinator.delegate = self - self.add(childCoordinator: coordinator) - - coordinator.start() - } private func setupCrossSigning(with authenticationParameters: [String: Any] = [:]) { guard let crossSigning = parameters.session.crypto?.crossSigning else { return } @@ -87,6 +71,22 @@ final class CrossSigningSetupCoordinator: CrossSigningSetupCoordinatorType { } } } + + private func showReauthentication(authenticationSession: MXAuthenticationSession) { + let setupCrossSigningRequest = self.crossSigningService.setupCrossSigningRequest() + + let reauthenticationParameters = ReauthenticationCoordinatorParameters(session: parameters.session, + presenter: parameters.presenter, + title: parameters.title, + message: parameters.message, + authenticationSession: authenticationSession) + + let coordinator = ReauthenticationCoordinator(parameters: reauthenticationParameters) + coordinator.delegate = self + self.add(childCoordinator: coordinator) + + coordinator.start() + } } // MARK: - ReauthenticationCoordinatorDelegate