mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Fix ktlint
This commit is contained in:
parent
5c547794f2
commit
4d91bc934b
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue