Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Oct 6, 2023
1 parent d7378e0 commit 59d4450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/979.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correction des messages chiffrés quand il existe qu'une seule session
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ internal class RustCryptoService @Inject constructor(
return try {
olmMachine.decryptRoomEvent(event)
} catch (mxCryptoError: MXCryptoError) {
// Tchap: try to perform a lazy migration from legacy store if there is no other session.
if (mxCryptoError is MXCryptoError.Base && mxCryptoError.errorType == MXCryptoError.ErrorType.UNKNOWN_INBOUND_SESSION_ID) {
Timber.v("Try to perform a lazy migration from legacy store")
/**
Expand All @@ -508,7 +509,6 @@ internal class RustCryptoService @Inject constructor(
val sessionId = content.sessionId
val senderKey = content.senderKey
if (roomId != null && sessionId != null) {
// try to perform a lazy migration from legacy store
val legacy = tryOrNull("Failed to access legacy crypto store") {
cryptoStore.getInboundGroupSession(sessionId, senderKey.orEmpty())
}
Expand Down

0 comments on commit 59d4450

Please sign in to comment.