fix bad sender key export

This commit is contained in:
Valere 2022-06-13 13:56:44 +02:00
parent 34145f0374
commit f64adeba7f
1 changed files with 2 additions and 2 deletions

View File

@ -46,11 +46,11 @@ data class MXInboundMegolmSessionWrapper(
MegolmSessionData(
senderClaimedEd25519Key = sessionData.keysClaimed?.get("ed25519"),
forwardingCurve25519KeyChain = sessionData.forwardingCurve25519KeyChain?.toList().orEmpty(),
senderKey = session.export(index ?: session.firstKnownIndex),
sessionKey = session.export(wantedIndex),
senderClaimedKeys = keysClaimed,
roomId = sessionData.roomId,
sessionId = session.sessionIdentifier(),
sessionKey = session.export(wantedIndex),
senderKey = senderKey,
algorithm = MXCRYPTO_ALGORITHM_MEGOLM,
sharedHistory = sessionData.sharedHistory
)