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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -