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

Merge pull request #666 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:14:45 +01:00
committed by GitHub
4 changed files with 30 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ OlmEncryption.prototype.encryptMessage = function(room, eventType, content) {
// TODO: there is a race condition here! What if a new user turns up
// just as you are sending a secret message?
const users = utils.map(room.getJoinedMembers(), function(u) {
const users = utils.map(room.getEncryptionTargetMembers(), function(u) {
return u.userId;
});