How to view all groups in which the current user is a member?

I have two questions

1>I have added abc@desktop-e149g98 to my group membersonly@conference.desktop-e149g98 as a member.Is it possible for a user to view all the groups in which he is a member"

2>What does **getJoinedRooms(String user) **method of MultiUserChatManager class.Does it return only a list of groups in which the user is online.I dont know why but in my case it always returns null.

my code:

try

{

List joinedRooms = manager.getJoinedRooms(“abc@conference.desktop-e149g98”);

if(joinedRooms.isEmpty())

{

new Toastnotify(getApplicationContext(), “now”); //this is always executing even if the user is online in a group

}

} catch…