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 91a0e35ac0..3a9d12ce12 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 @@ -526,6 +526,11 @@ internal class OlmMachine( return plainDevices } + /** Mark the device for the given user with the given device ID as trusted + * + * This will mark the device locally as trusted, it won't upload any type of cross + * signing signature + * */ @Throws(CryptoStoreErrorException::class) internal suspend fun markDeviceAsTrusted(userId: String, deviceId: String) = withContext(Dispatchers.IO) { @@ -564,15 +569,26 @@ internal class OlmMachine( runBlocking { inner.discardRoomKey(roomId) } } + /** Get all the verification requests we have with the given user + * + * @param userId The ID of the user for which we would like to fetch the + * verification requests + * + * @return The list of VerificationRequests that we share with the given user + */ fun getVerificationRequests(userId: String): List { return this.inner.getVerificationRequests(userId) } + /** Get a verification request for the given user with the given flow ID */ fun getVerificationRequest(userId: String, flowId: String): VerificationRequest? { return this.inner.getVerificationRequest(userId, flowId) } - /** Get an active verification */ + /** Get an active verification for the given user and given flow ID + * + * This can return a SAS verification or a QR code verification + */ fun getVerification(userId: String, flowId: String): Verification? { return this.inner.getVerification(userId, flowId) }