From 9bebb227460ab51c4acb716dd38c16a1188f8ab8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 17 Mar 2020 09:51:28 +0100 Subject: [PATCH] devicesByUser should be userId => array of devices --- src/crypto/algorithms/megolm.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crypto/algorithms/megolm.js b/src/crypto/algorithms/megolm.js index 95cf43e3e..89221fac1 100644 --- a/src/crypto/algorithms/megolm.js +++ b/src/crypto/algorithms/megolm.js @@ -629,9 +629,7 @@ MegolmEncryption.prototype.reshareKeyWithDevice = async function( await olmlib.ensureOlmSessionsForDevices( this._olmDevice, this._baseApis, { - [userId]: { - [device.deviceId]: device, - }, + [userId]: [device], }, );