Adapt api changes from key backup module

This commit is contained in:
ismailgulek
2022-08-11 13:52:01 +03:00
parent c57e148d3a
commit 073eb73302
3 changed files with 4 additions and 4 deletions
@@ -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
}