From 4d91bc934bc3aacb55386a09747b1b3a676d080d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 31 Jan 2020 12:21:01 +0100 Subject: [PATCH] Fix ktlint --- .../crypto/algorithms/megolm/MXMegolmDecryption.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt index 99d23a888a..f15c5bb1ad 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt @@ -66,9 +66,12 @@ internal class MXMegolmDecryption(private val userId: String, override suspend fun decryptEvent(event: Event, timeline: String): MXEventDecryptionResult { // If cross signing is enabled, we don't send request until the keys are trusted val requestOnFail = - if (cryptoStore.getMyCrossSigningInfo() != null) + if (cryptoStore.getMyCrossSigningInfo() != null) { cryptoStore.getMyCrossSigningInfo()?.isTrusted() == true - else true // Legacy + } else { + // Legacy + true + } return decryptEvent(event, timeline, requestOnFail) }