1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-10 17:31:53 +03:00

pass in key rather than decryption object to restoreKeyBackups

This commit is contained in:
Hubert Chathi
2018-08-23 00:26:21 -04:00
parent fb8efe368a
commit 75107f99b2
2 changed files with 8 additions and 9 deletions

View File

@@ -215,14 +215,9 @@ describe("MegolmBackup", function() {
}
});
};
const decryption = new global.Olm.PkDecryption();
decryption.unpickle(
"secret_key",
"qx37WTQrjZLz5tId/uBX9B3/okqAbV1ofl9UnHKno1eipByCpXleAAlAZoJgYnCDOQZD"
+ "QWzo3luTSfkF9pU1mOILCbbouubs6TVeDyPfgGD9i86J8irHjA"
);
return client.restoreKeyBackups(
decryption,
"qx37WTQrjZLz5tId/uBX9B3/okqAbV1ofl9UnHKno1eipByCpXleAAlAZoJgYnCDOQZD"
+ "QWzo3luTSfkF9pU1mOILCbbouubs6TVeDyPfgGD9i86J8irHjA",
ROOM_ID,
'o+21hSjP+mgEmcfdslPsQdvzWnkdt0Wyo00Kp++R8Kc'
).then(() => {