diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-28 20:48:45 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-28 22:09:51 +0100 |
commit | bdb970b8ada0363b9bc01d211f4af794b52c9284 (patch) | |
tree | 8818e0e75bd1cdc542117ab1540558cf8111b4c2 /src/main/java/de/pixart/messenger/entities | |
parent | 13c34e7d0f1d49cb5a3fdd5ebd6b62794cbcded9 (diff) |
some bug fixes
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/MucOptions.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/MucOptions.java b/src/main/java/de/pixart/messenger/entities/MucOptions.java index 50ea4c2fb..67c02b543 100644 --- a/src/main/java/de/pixart/messenger/entities/MucOptions.java +++ b/src/main/java/de/pixart/messenger/entities/MucOptions.java @@ -439,11 +439,13 @@ public class MucOptions { break; } } + boolean self = user.realJid != null && user.realJid.equals(account.getJid().toBareJid()); if (membersOnly() && nonanonymous() && user.affiliation.ranks(Affiliation.MEMBER) && user.realJid != null - && !realJidInMuc) { + && !realJidInMuc + && !self) { user.role = Role.NONE; user.avatar = null; user.fullJid = null; @@ -593,6 +595,7 @@ public class MucOptions { public List<User> getUsers(int max) { ArrayList<User> subset = new ArrayList<>(); HashSet<Jid> jids = new HashSet<>(); + jids.add(account.getJid().toBareJid()); synchronized (users) { for(User user : users) { if (user.getRealJid() == null || jids.add(user.getRealJid())) { |