You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-10 17:31:53 +03:00
Update the olm library version to 1.3.0
This commit is contained in:
@@ -124,7 +124,7 @@ MegolmEncryption.prototype._prepareNewSession = function(room) {
|
||||
|
||||
this._olmDevice.addInboundGroupSession(
|
||||
this._roomId, this._olmDevice.deviceCurve25519Key, session_id,
|
||||
key.key, key.chain_index
|
||||
key.key
|
||||
);
|
||||
|
||||
// we're going to share the key with all current members of the room,
|
||||
@@ -394,8 +394,7 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) {
|
||||
|
||||
if (!content.room_id ||
|
||||
!content.session_id ||
|
||||
!content.session_key ||
|
||||
content.chain_index === undefined
|
||||
!content.session_key
|
||||
) {
|
||||
console.error("key event is missing fields");
|
||||
return;
|
||||
@@ -403,7 +402,7 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) {
|
||||
|
||||
this._olmDevice.addInboundGroupSession(
|
||||
content.room_id, event.getSenderKey(), content.session_id,
|
||||
content.session_key, content.chain_index
|
||||
content.session_key
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user