Fix ktlint

This commit is contained in:
Benoit Marty 2020-01-31 12:21:01 +01:00
parent 5c547794f2
commit 4d91bc934b

View file

@ -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)
}