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) {
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;