I am using MUC for group chat using smack. i want to get list of MUC rooms which user already participated like whatsapp.
Using belove code, I get only rooms which user joined but i need to get the all groups which I already became a member.
Here is my code :
List<EntityBareJid> joinedRoomes = manager.getJoinedRooms(conn);
for (EntityBareJid jRoomName : joinedRoomes) {
Log.e("Group Chat : Joined room = " , jRoomName.toString());
}
Anyone help me?
Also i want to add avatar image for MUC group. how can i do that?
There is no command to get the list of rooms where an account is member/admin/owner... There is only a command to get the list of affiliations of a specific room.
A room does not have vcard, so it has no place to store the image. But it has a "Description" field, where you can put the URL of the avatar image, and then modify clients to read that URL and display the image as the room avatar.