1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

devicesByUser should be userId => array of devices

This commit is contained in:
Bruno Windels
2020-03-17 09:51:28 +01:00
parent 758e12d6dd
commit 9bebb22746

View File

@@ -629,9 +629,7 @@ MegolmEncryption.prototype.reshareKeyWithDevice = async function(
await olmlib.ensureOlmSessionsForDevices( await olmlib.ensureOlmSessionsForDevices(
this._olmDevice, this._baseApis, { this._olmDevice, this._baseApis, {
[userId]: { [userId]: [device],
[device.deviceId]: device,
},
}, },
); );