diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-28 10:32:06 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-28 10:32:06 +0200 |
commit | e63d6b4bf2f17d82a2d7744c1efa13c46b043f5e (patch) | |
tree | 446d61feb99690a22053bf9950d4a9a111f33a3c /src/main | |
parent | 9a7f51520e4897be0c10a7f1353e275eb0f4fa89 (diff) |
only keep offline members in members only conferences
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/MucOptions.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java index 7441323a..ec21ab80 100644 --- a/src/main/java/eu/siacs/conversations/entities/MucOptions.java +++ b/src/main/java/eu/siacs/conversations/entities/MucOptions.java @@ -394,7 +394,10 @@ public class MucOptions { if (user != null) { synchronized (users) { users.remove(user); - if (user.affiliation.ranks(Affiliation.MEMBER) && user.realJid != null) { + if (membersOnly() && + nonanonymous() && + user.affiliation.ranks(Affiliation.MEMBER) && + user.realJid != null) { user.role = Role.NONE; user.avatar = null; user.fullJid = null; |