mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Adapt api changes from key backup module
This commit is contained in:
@@ -134,7 +134,7 @@ final class KeyBackupSetupCoordinator: KeyBackupSetupCoordinatorType {
|
||||
return
|
||||
}
|
||||
|
||||
keyBackup.prepareKeyBackupVersion(withPassword: nil, success: { megolmBackupCreationInfo in
|
||||
keyBackup.prepareKeyBackupVersion(withPassword: nil, algorithm: nil, success: { megolmBackupCreationInfo in
|
||||
keyBackup.createKeyBackupVersion(megolmBackupCreationInfo, success: { _ in
|
||||
recoveryService.updateRecovery(forSecrets: [MXSecretId.keyBackup.takeUnretainedValue() as String], withPrivateKey: privateKey) {
|
||||
completion(.success(Void()))
|
||||
|
||||
@@ -96,7 +96,7 @@ final class KeyBackupSetupPassphraseViewModel: KeyBackupSetupPassphraseViewModel
|
||||
|
||||
self.update(viewState: .loading)
|
||||
|
||||
self.keyBackup.prepareKeyBackupVersion(withPassword: passphrase, success: { [weak self] (megolmBackupCreationInfo) in
|
||||
self.keyBackup.prepareKeyBackupVersion(withPassword: passphrase, algorithm: nil, success: { [weak self] (megolmBackupCreationInfo) in
|
||||
guard let sself = self else {
|
||||
return
|
||||
}
|
||||
@@ -122,7 +122,7 @@ final class KeyBackupSetupPassphraseViewModel: KeyBackupSetupPassphraseViewModel
|
||||
private func setupRecoveryKey() {
|
||||
self.update(viewState: .loading)
|
||||
|
||||
self.keyBackup.prepareKeyBackupVersion(withPassword: nil, success: { [weak self] (megolmBackupCreationInfo) in
|
||||
self.keyBackup.prepareKeyBackupVersion(withPassword: nil, algorithm: nil, success: { [weak self] (megolmBackupCreationInfo) in
|
||||
guard let sself = self else {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user