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

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