only try to change affilations for known jids
This commit is contained in:
parent
4274fe90ac
commit
58bc4cba06
|
@ -1699,7 +1699,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||||
public void changeAffiliationsInConference(final Conversation conference, MucOptions.Affiliation before, MucOptions.Affiliation after) {
|
public void changeAffiliationsInConference(final Conversation conference, MucOptions.Affiliation before, MucOptions.Affiliation after) {
|
||||||
List<Jid> jids = new ArrayList<>();
|
List<Jid> jids = new ArrayList<>();
|
||||||
for (MucOptions.User user : conference.getMucOptions().getUsers()) {
|
for (MucOptions.User user : conference.getMucOptions().getUsers()) {
|
||||||
if (user.getAffiliation() == before) {
|
if (user.getAffiliation() == before && user.getJid() != null) {
|
||||||
jids.add(user.getJid());
|
jids.add(user.getJid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue