Merge pull request #2042 from matrix-org/matthew/encrypt-for-invited-users

encrypt for invited users if history visibility allows.
This commit is contained in:
Matthew Hodgson 2018-07-10 16:12:45 +01:00 committed by GitHub
commit b482a4cdd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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