From e63d6b4bf2f17d82a2d7744c1efa13c46b043f5e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 28 Jun 2016 10:32:06 +0200 Subject: [PATCH] only keep offline members in members only conferences --- .../java/eu/siacs/conversations/entities/MucOptions.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java index 7441323aa..ec21ab800 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;