powered by Jive Software

How to find user's chat room

Hi,

I am trying to find if a user created on the openfire server is in a chat room or not. I’d like to be able to get the list of rooms the user is chatting inirrespective of the user being ina chat or not.

I am trying to use MUC.getJoinedRooms(connection, userJID) and I get “No response from server” error. I tried creating a roomadmin on the openfire server and use this roomadmin’s connection but it works only for one connected user. If I have more than one user that’s connected (not in a chat) I still get the same error.

Is there any way to figure this out other than finding all chat rooms (getHostedRooms) and all occupants (getRoomInfo) and searching for that user?

I’d appreciate any help.

Thanks.

Srini

I’m looking for the same function. But I cannot find anything like this in the documents or the XMPP Guide from O’REILLY