do not add self as crytpo target in MUC

This commit is contained in:
Daniel Gultsch 2018-11-12 20:14:06 +01:00
parent ab43a4bcf9
commit 09f9baeeef
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ public class MucOptions {
ArrayList<Jid> members = new ArrayList<>();
synchronized (users) {
for (User user : users) {
if (user.affiliation.ranks(Affiliation.MEMBER) && user.realJid != null && (!user.isDomain() || includeDomains)) {
if (user.affiliation.ranks(Affiliation.MEMBER) && user.realJid != null && !user.realJid.asBareJid().equals(conversation.account.getJid().asBareJid()) && (!user.isDomain() || includeDomains)) {
members.add(user.realJid);
}
}