This commit is contained in:
Valere 2020-03-24 10:06:36 +01:00
parent 6e85b20b0e
commit 22642e71a3
1 changed files with 0 additions and 16 deletions

View File

@ -769,23 +769,7 @@ internal class DefaultCrossSigningService @Inject constructor(
Timber.v("## CrossSigning - update trust for $otherUserId , verified=${it.isVerified()}")
setUserKeysAsTrusted(otherUserId, it.isVerified())
}
// // TODO if my keys have changes, i should recheck all devices of all users?
// val devices = cryptoStore.getUserDeviceList(otherUserId)
// devices?.forEach { device ->
// val updatedTrust = checkDeviceTrust(otherUserId, device.deviceId, device.trustLevel?.isLocallyVerified() ?: false)
// Timber.v("## CrossSigning - update trust for device ${device.deviceId} of user $otherUserId , verified=$updatedTrust")
// cryptoStore.setDeviceTrust(otherUserId, device.deviceId, updatedTrust.isCrossSignedVerified(), updatedTrust.isLocallyVerified())
// }
//
// if (otherUserId == userId) {
// // It's me, i should check if a newly trusted device is signing my master key
// // In this case it will change my MSK trust, and should then re-trigger a check of all other user trust
// setUserKeysAsTrusted(otherUserId, checkSelfTrust().isVerified())
// }
}
// eventBus.post(CryptoToSessionUserTrustChange(userIds))
}
// now check device trust