fix bad sender key export
This commit is contained in:
parent
34145f0374
commit
f64adeba7f
|
@ -46,11 +46,11 @@ data class MXInboundMegolmSessionWrapper(
|
||||||
MegolmSessionData(
|
MegolmSessionData(
|
||||||
senderClaimedEd25519Key = sessionData.keysClaimed?.get("ed25519"),
|
senderClaimedEd25519Key = sessionData.keysClaimed?.get("ed25519"),
|
||||||
forwardingCurve25519KeyChain = sessionData.forwardingCurve25519KeyChain?.toList().orEmpty(),
|
forwardingCurve25519KeyChain = sessionData.forwardingCurve25519KeyChain?.toList().orEmpty(),
|
||||||
senderKey = session.export(index ?: session.firstKnownIndex),
|
sessionKey = session.export(wantedIndex),
|
||||||
senderClaimedKeys = keysClaimed,
|
senderClaimedKeys = keysClaimed,
|
||||||
roomId = sessionData.roomId,
|
roomId = sessionData.roomId,
|
||||||
sessionId = session.sessionIdentifier(),
|
sessionId = session.sessionIdentifier(),
|
||||||
sessionKey = session.export(wantedIndex),
|
senderKey = senderKey,
|
||||||
algorithm = MXCRYPTO_ALGORITHM_MEGOLM,
|
algorithm = MXCRYPTO_ALGORITHM_MEGOLM,
|
||||||
sharedHistory = sessionData.sharedHistory
|
sharedHistory = sessionData.sharedHistory
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue