iphone - List of chat room members -
how can retrieve list of members of chat room in using xmpp framework
?
i tried using:
- (void)xmpproom:(xmpproom *)sender didfetchmemberslist:(nsarray *)items
but returns empty array
this question old encountered exact issue (xmpproom:didfetchmemberslist:
passed empty array). in case problem when users got invited room have role of "participant" , affiliation of "none". fetchmemberslist
method in xmpproom looks items affiliation of "member".
you can change affiliation so:
[xmpproom editroomprivileges:@[[xmpproom itemwithaffiliation:@"member" jid:userjid]]];
for details on roles , affiliations, see xep-0045.
Comments
Post a Comment