From 948aa1a1411ba11903a4214d83086afb66fc335e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 24 Jun 2021 13:59:44 +0200 Subject: [PATCH] crypto: Correctly pick up our device verification state --- .../java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt index 4622960c3f..db501a1f20 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt @@ -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)