Fix / trust was not properly updated after 4S restore

This commit is contained in:
Valere 2020-02-25 11:29:42 +01:00 committed by Benoit Marty
parent c579de1033
commit 4b75baf772

View file

@ -360,6 +360,7 @@ internal class DefaultCrossSigningService @Inject constructor(
val checkSelfTrust = checkSelfTrust()
if (checkSelfTrust.isVerified()) {
cryptoStore.storePrivateKeysInfo(masterKeyPrivateKey, uskKeyPrivateKey, sskPrivateKey)
setUserKeysAsTrusted(userId, true)
}
return checkSelfTrust
}