crypto: Correctly pick up our device verification state

This commit is contained in:
Damir Jelić 2021-06-24 13:59:44 +02:00
parent aad18ebec7
commit 948aa1a141

View file

@ -112,8 +112,7 @@ private fun toCryptoDeviceInfo(device: Device): CryptoDeviceInfo {
// Kotlin side care about signatures?
mapOf(),
UnsignedDeviceInfo(device.displayName),
// TODO pass trust levels here
DeviceTrustLevel(crossSigningVerified = false, locallyVerified = false),
DeviceTrustLevel(crossSigningVerified = device.verified, locallyVerified = device.locallyVerified),
device.isBlocked,
// TODO
null)