diff options
Diffstat (limited to 'src/main/java/eu')
-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; |