powered by Jive Software

Presence Listener not called when previously banned user joins room

I am running 4.3.0 Alpha release.

  1. Two users in a non-moderated room, user1 and user2.
  2. My client joins, presence listener receives three msgs, one for user1, one for user2 and one for my client.
  3. Go to XMPP server and ban user1
  4. My client’s presence listener receives one msg for user1 indicating he is now unavailable with status code 301
  5. Go to XMPP server and remove user1 from ban list
  6. Have user1 join the room
  7. Smack debug window shows presence message received for user1, but my client’s presence listener is not called.

I looked through the open issue list and did not see this. Is this a known issue?

Thanks, Wray


Please have a look at https://github.com/igniterealtime/Smack/wiki/How-to-ask-for-help,-report-an-issue-and-possible-solve-the-problem-yourself

XMPP trace would be helpful. Also which kind of presence listeners are we talking about? MultiUserChat.addParticipantListener(PresenceListener)?

Sorry for the delay, down with the flu that is going around. I will put in some breakpoints and see if I can figure out what is going on.

Smack Version: 4.3.0-alpha1-SNAPSHOT (non-git build 2018-01-23)
and yes it is a MultiUserChat.addParticipantListener(PresenceListener)