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:
commit
b482a4cdd3
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue