Secure backup: Allow to execute a random closure the secure backup is unlocked

Only from swift.
We should change the name "SecretsRecovery" classes
This commit is contained in:
manuroe
2021-06-16 07:44:12 +02:00
parent 961d323407
commit df628da793
8 changed files with 83 additions and 27 deletions

View File

@@ -1073,7 +1073,7 @@ TableViewSectionsDelegate>
- (void)restoreFromSecureBackup
{
secretsRecoveryCoordinatorBridgePresenter = [[SecretsRecoveryCoordinatorBridgePresenter alloc] initWithSession:self.mainSession recoveryGoal:SecretsRecoveryGoalRestoreSecureBackup];
secretsRecoveryCoordinatorBridgePresenter = [[SecretsRecoveryCoordinatorBridgePresenter alloc] initWithSession:self.mainSession recoveryGoal:SecretsRecoveryGoalBridgeRestoreSecureBackup];
[secretsRecoveryCoordinatorBridgePresenter presentFrom:self animated:true];
secretsRecoveryCoordinatorBridgePresenter.delegate = self;
@@ -1955,7 +1955,7 @@ TableViewSectionsDelegate>
- (void)showSecretsRecovery
{
secretsRecoveryCoordinatorBridgePresenter = [[SecretsRecoveryCoordinatorBridgePresenter alloc] initWithSession:self.mainSession recoveryGoal:SecretsRecoveryGoalKeyBackup];
secretsRecoveryCoordinatorBridgePresenter = [[SecretsRecoveryCoordinatorBridgePresenter alloc] initWithSession:self.mainSession recoveryGoal:SecretsRecoveryGoalBridgeKeyBackup];
[secretsRecoveryCoordinatorBridgePresenter presentFrom:self animated:true];
secretsRecoveryCoordinatorBridgePresenter.delegate = self;
@@ -1971,7 +1971,7 @@ TableViewSectionsDelegate>
{
UIViewController *presentedViewController = [coordinatorBridgePresenter toPresentable];
if (coordinatorBridgePresenter.recoveryGoal == SecretsRecoveryGoalKeyBackup)
if (coordinatorBridgePresenter.recoveryGoal == SecretsRecoveryGoalBridgeKeyBackup)
{
// Go to the true key backup recovery screen
if ([presentedViewController isKindOfClass:UINavigationController.class])