encrypt for invited users if history visibility allows.

fixes https://github.com/vector-im/riot-web/issues/2713. requires equivalent branch in js-sdk
pull/21833/head
Matthew Hodgson 2018-07-05 01:48:28 +02:00
parent de33cf1afe
commit 1811d3f148
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {