This commit is contained in:
Valere 2020-04-06 10:00:59 +02:00
parent 1dfd6f232a
commit 326f2e99fb

View File

@ -161,8 +161,7 @@ class BootstrapCrossSigningTask @Inject constructor(
ssssService.storeSecret( ssssService.storeSecret(
MASTER_KEY_SSSS_NAME, MASTER_KEY_SSSS_NAME,
mskPrivateKey, mskPrivateKey,
listOf(SharedSecretStorageService.KeyRef(keyInfo.keyId, keyInfo.keySpec)) listOf(SharedSecretStorageService.KeyRef(keyInfo.keyId, keyInfo.keySpec)), it
, it
) )
} }
params.progressListener?.onProgress( params.progressListener?.onProgress(
@ -181,16 +180,14 @@ class BootstrapCrossSigningTask @Inject constructor(
} }
params.progressListener?.onProgress( params.progressListener?.onProgress(
WaitingViewData( WaitingViewData(
stringProvider.getString(R.string.bootstrap_crosssigning_progress_save_ssk) stringProvider.getString(R.string.bootstrap_crosssigning_progress_save_ssk), isIndeterminate = true
, isIndeterminate = true
) )
) )
awaitCallback<Unit> { awaitCallback<Unit> {
ssssService.storeSecret( ssssService.storeSecret(
SELF_SIGNING_KEY_SSSS_NAME, SELF_SIGNING_KEY_SSSS_NAME,
sskPrivateKey, sskPrivateKey,
listOf(SharedSecretStorageService.KeyRef(keyInfo.keyId, keyInfo.keySpec)) listOf(SharedSecretStorageService.KeyRef(keyInfo.keyId, keyInfo.keySpec)), it
, it
) )
} }
} catch (failure: Failure) { } catch (failure: Failure) {