1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Make multi-room key restore work

This commit is contained in:
David Baker
2018-09-17 15:59:37 +01:00
parent e789747834
commit 073fb73ff3
2 changed files with 53 additions and 18 deletions

View File

@@ -851,6 +851,8 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) {
if (this._crypto.backupInfo) {
// XXX: No retries on this at all: if this request dies for whatever
// reason, this key will never be uploaded.
// More XXX: If this fails it'll cause the message send to fail,
// and this will happen if the backup is deleted from another client.
return this._crypto.backupGroupSession(
content.room_id, senderKey, forwardingKeyChain,
content.session_id, content.session_key, keysClaimed,