only keep offline members in members only conferences

This commit is contained in:
Daniel Gultsch 2016-06-28 10:32:06 +02:00
parent 9a7f51520e
commit e63d6b4bf2

View file

@ -394,7 +394,10 @@ public class MucOptions {
if (user != null) { if (user != null) {
synchronized (users) { synchronized (users) {
users.remove(user); 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.role = Role.NONE;
user.avatar = null; user.avatar = null;
user.fullJid = null; user.fullJid = null;