From 1811d3f148ef463ae4e6628f4488075c3ef30910 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 5 Jul 2018 01:48:28 +0200 Subject: [PATCH] encrypt for invited users if history visibility allows. fixes https://github.com/vector-im/riot-web/issues/2713. requires equivalent branch in js-sdk --- src/cryptodevices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptodevices.js b/src/cryptodevices.js index d11aa47cda..92237ce7f5 100644 --- a/src/cryptodevices.js +++ b/src/cryptodevices.js @@ -44,7 +44,7 @@ export function markAllDevicesKnown(matrixClient, devices) { * module:crypto~DeviceInfo|DeviceInfo}. */ export function getUnknownDevicesForRoom(matrixClient, room) { - const roomMembers = room.getJoinedMembers().map((m) => { + const roomMembers = room.getEncryptionTargetMembers().map((m) => { return m.userId; }); return matrixClient.downloadKeys(roomMembers, false).then((devices) => {