diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-12-04 19:24:23 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-12-04 19:24:23 +0100 |
commit | e8ed23f58c7eb97a1b7b76d75249a819d6c1789c (patch) | |
tree | 71cc2258a124bf7b9210ff035889f901b5bf98b2 /src/main/java | |
parent | 6c2e3b91a4a7d9fcd75e228dccd989331e75af6c (diff) |
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.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/MucOptions.java | 2 |
1 files changed, 1 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 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); } } |