Search code examples
xmppchatopenfiresmackchatroom

Force join a client into a room


I have a Xmpp application using smack api 4.1.6 and I'm trying to force join a client without invitation.

Now, I've tried a scenario where I setup a listener and invite the client back when he leaves. It works, but that's not what I want.

I need to force rejoin the client to the room without any invite.

Now I thought that I can like make the room bookmarked to the client but that's need to be done on the client side...

Is this possible ? Any help would be appreciated, thanks.


Solution

  • Force joining a user in MUC means whenever a user is invited to a room, it automatically becomes part of the room (invite packet is intercepted on server and user is made participant of the room) and user starts receiving room messages.

    If this is the desired behavior, then it requires modifications/tweaks in Openfire code (Customizations as per business needs).