From e8ed23f58c7eb97a1b7b76d75249a819d6c1789c Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 4 Dec 2018 19:24:23 +0100 Subject: remove role=none participant when first online participant joins in anticipations for muc services using registered nicks (and putting nicks into the member list even if that user is offline) we need to remove that 'fake' user from the online list when the real user comes online. --- src/main/java/de/pixart/messenger/entities/MucOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart/messenger/entities') diff --git a/src/main/java/de/pixart/messenger/entities/MucOptions.java b/src/main/java/de/pixart/messenger/entities/MucOptions.java index 01ad8816e..bfad9e6a7 100644 --- a/src/main/java/de/pixart/messenger/entities/MucOptions.java +++ b/src/main/java/de/pixart/messenger/entities/MucOptions.java @@ -250,7 +250,7 @@ public class MucOptions { old = findUserByRealJid(user.realJid); realJidFound = old != null; synchronized (users) { - if (old != null && old.fullJid == null) { + if (old != null && (old.fullJid == null || old.role == Role.NONE)) { users.remove(old); } } -- cgit v1.2.3