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
pass in key rather than decryption object to restoreKeyBackups
This commit is contained in:
@@ -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(() => {
|
||||
|
Reference in New Issue
Block a user