diff --git a/src/matrix/e2ee/Dehydration.js b/src/matrix/e2ee/Dehydration.js index 87cf0121..65e2b90a 100644 --- a/src/matrix/e2ee/Dehydration.js +++ b/src/matrix/e2ee/Dehydration.js @@ -60,7 +60,7 @@ class EncryptedDehydratedDevice { const account = new this._olm.Account(); try { const pickledAccount = this._dehydratedDevice.device_data.account; - account.unpickle(key.binaryKey, pickledAccount); + account.unpickle(key.binaryKey.slice(), pickledAccount); return new DehydratedDevice(this._dehydratedDevice, account, key); } catch (err) { account.free();