I am developing a client for Jabber using smack. One of the tasks that I need to undertake is the following:
When a new user joins the room (I use MultiUserChat), I need to display this information on a list/combobox. I have accomplished this using the participantlistener.
My problem now is the reverse - i need to remove an user from the list/combo box whenever he/she leaves. How do I accomplish that?
Basically, to remove an user from the list/combo box, I need to somehow know who is exactly leaving. Then, I could check the entries in the list/combo and delete it off. How do I know who has left the room? What method do I need to use and under which class?
Vimal Kumar S