AnsweredAssumed Answered

Not able to get chat room list

Question asked by Mitesh on Mar 21, 2017

Hi

i am using 4.1.9 smack aPI version. i am not able to get using following multiuser chat room list code.

 

Set<String> tempRoom = multiUserChatManager.getJoinedRooms();

Logger.log("Get Room count : " + tempRoom.size());

 

Iterator<String> list = tempRoom.iterator();

while (list.hasNext()) {

  Logger.log("Get Room name : " + list.next());

}

 

try {

  String userJid =   "user@domain/Android";

  Logger.log("User JID : " + userJid);

  List<String> temp1Room = multiUserChatManager.getJoinedRooms(userJid);

  Logger.log("Get Room List Count : " + tempRoom.size());

} catch (

  Exception e

  ) {

  e.printStackTrace();

}

 

Smack SupportSmack Dev

Outcomes