1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

encrypt for invited users if history visibility allows.

fixes https://github.com/vector-im/riot-web/issues/2713
This commit is contained in:
Matthew Hodgson
2018-07-05 01:45:45 +02:00
parent 0415f821eb
commit d8d35f4022
4 changed files with 31 additions and 6 deletions

View File

@@ -536,8 +536,7 @@ MegolmEncryption.prototype._checkForUnknownDevices = function(devicesInRoom) {
* from userId to deviceId to deviceInfo
*/
MegolmEncryption.prototype._getDevicesInRoom = function(room) {
// XXX what about rooms where invitees can see the content?
const roomMembers = utils.map(room.getJoinedMembers(), function(u) {
const roomMembers = utils.map(room.getEncryptionTargetMembers(), function(u) {
return u.userId;
});