Skip to content

Commit

Permalink
Re-arrange method other.
Browse files Browse the repository at this point in the history
(No other changes are made to the methods).
  • Loading branch information
pixlwave committed Nov 26, 2024
1 parent 514b8f6 commit 4c0a89d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Riot/Modules/CrossSigning/Setup/CrossSigningSetupCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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
Expand Down

0 comments on commit 4c0a89d

Please sign in to comment.