XMPP群聊 - 会议室成员始终返回零

时间:2017-03-09 06:17:46

标签: android xmpp chat smack

创建新房间时的房间配置。

submitForm.setAnswer("muc#roomconfig_passwordprotectedroom", false);
submitForm.setAnswer("muc#roomconfig_persistentroom", true);
submitForm.setAnswer("muc#roomconfig_changesubject", true);
submitForm.setAnswer("muc#roomconfig_publicroom", true);
submitForm.setAnswer("muc#roomconfig_allowinvites", true);
submitForm.setAnswer("muc#roomconfig_membersonly", false);
submitForm.setAnswer("muc#roomconfig_moderatedroom", false);
submitForm.setAnswer("muc#roomconfig_roomowners", owners);
muc.sendConfigurationForm(submitForm);

在小组聊天活动中,当我为成员和所有者尝试下方法时,所有返回零

List<Affiliate> affiliatesMem =   room.getMembers();
List<Occupant> affiliatesMem1 =   room.getParticipants();
List<EntityFullJid> affiliatesMem2 =   room.getOccupants();
List<Affiliate> affiliatesAdmin = room.getAdmins();

Is i need to do some thing extra?

Thanks

0 个答案:

没有答案