mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
MESSENGER_2910 fix poll and crosssigning
This commit is contained in:
@@ -138,10 +138,14 @@ final class KeyVerificationCoordinator: KeyVerificationCoordinatorType {
|
||||
case .incomingSASTransaction(let incomingSASTransaction):
|
||||
rootCoordinator = self.createDataLoadingScreenCoordinator(otherUserId: incomingSASTransaction.otherUserId, otherDeviceId: incomingSASTransaction.otherDeviceId)
|
||||
case .completeSecurity(let isNewSignIn):
|
||||
// $$$ missing interaction with disableSelfUserVerification
|
||||
let coordinator = self.createCompleteSecurityCoordinator(isNewSignIn: isNewSignIn)
|
||||
self.completeSecurityCoordinator = coordinator
|
||||
rootCoordinator = coordinator
|
||||
if BuildSettings.disableSelfUserVerification {
|
||||
let coordinator = self.createSecretsRecoveryCoordinator(with: .passphraseOrKey)
|
||||
rootCoordinator = coordinator
|
||||
} else {
|
||||
let coordinator = self.createCompleteSecurityCoordinator(isNewSignIn: isNewSignIn)
|
||||
self.completeSecurityCoordinator = coordinator
|
||||
rootCoordinator = coordinator
|
||||
}
|
||||
}
|
||||
|
||||
rootCoordinator.start()
|
||||
@@ -191,6 +195,13 @@ final class KeyVerificationCoordinator: KeyVerificationCoordinatorType {
|
||||
return coordinator
|
||||
}
|
||||
|
||||
private func createSecretsRecoveryCoordinator(with recoveryMode: SecretsRecoveryMode) -> SecretsRecoveryCoordinator {
|
||||
let coordinator = SecretsRecoveryCoordinator(session: self.session, recoveryMode: recoveryMode, recoveryGoal: .verifyDevice, navigationRouter: self.navigationRouter, cancellable: self.cancellable)
|
||||
coordinator.delegate = self
|
||||
|
||||
return coordinator
|
||||
}
|
||||
|
||||
private func showSecretsRecovery(with recoveryMode: SecretsRecoveryMode) {
|
||||
let coordinator = SecretsRecoveryCoordinator(session: self.session, recoveryMode: recoveryMode, recoveryGoal: .verifyDevice, navigationRouter: self.navigationRouter, cancellable: self.cancellable)
|
||||
coordinator.delegate = self
|
||||
|
||||
Reference in New Issue
Block a user