diff --git a/src/cryptodevices.js b/src/cryptodevices.js index 246fae3d73..161787fcbb 100644 --- a/src/cryptodevices.js +++ b/src/cryptodevices.js @@ -44,7 +44,7 @@ export function markAllDevicesKnown(matrixClient, devices) { * module:crypto~DeviceInfo|DeviceInfo}. */ export async function getUnknownDevicesForRoom(matrixClient, room) { - const roomMembers = await room.getEncryptionTargetMembers().map((m) => { + const roomMembers = (await room.getEncryptionTargetMembers()).map((m) => { return m.userId; }); const devices = await matrixClient.downloadKeys(roomMembers, false);