Merge branch 'release/0.14.2'

This commit is contained in:
Benoit Marty 2020-02-02 14:05:50 +01:00
commit 97aca28c0d
3 changed files with 8 additions and 14 deletions

View file

@ -1,3 +1,8 @@
Changes in RiotX 0.14.2 (2020-02-02)
===================================================
Fix RiotX not starting issue
Changes in RiotX 0.14.1 (2020-02-02)
===================================================

View file

@ -57,7 +57,6 @@ internal class MXMegolmDecryption(private val userId: String,
var newSessionListener: NewSessionListener? = null
var hasCheckUserCrossSigning = false
/**
* Events which we couldn't decrypt due to unknown sessions / indexes: map from
* senderKey|sessionId to timelines to list of MatrixEvents.
@ -67,17 +66,7 @@ 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
// There could be a race effect here when xsigning is enabled, we should ensure that keys was downloaded once
if (!hasCheckUserCrossSigning) {
deviceListManager.downloadKeys(listOf(userId), true)
hasCheckUserCrossSigning = true
}
val requestOnFail =
if (cryptoStore.getMyCrossSigningInfo() != null) {
cryptoStore.getMyCrossSigningInfo()?.isTrusted() == true
} else {
// Legacy
true
}
val requestOnFail = cryptoStore.getMyCrossSigningInfo()?.isTrusted() == true
return decryptEvent(event, timeline, requestOnFail)
}

View file

@ -15,8 +15,8 @@ androidExtensions {
}
ext.versionMajor = 0
ext.versionMinor = 14
ext.versionPatch = 1
ext.versionMinor = 15
ext.versionPatch = 0
static def getGitTimestamp() {
def cmd = 'git show -s --format=%ct'