Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Two suggestions:</p> <p>1) Make sure the user associated with the session used to instantiate the MulitUserChat instance (muc) has sufficient room privileges to get the members list (I think, but am not sure, that the user needs admin privileges for the room)</p> <p>2) If 1 is sufficiently handled make sure you are calling SmackAndroid.init(Context context)</p> <p>hope this helps!</p> <p>-- with regard to your last comment --</p> <p>I apologize from losing sight of the original question. You are correct, both functions can only be called by an admin user. There is no way (that I am aware of) to have a member gain admin privileges without the consent of an admin user. After a bit more consideration, I concluded that this is a poor solution anyway as granting admin privileges to all users compromises the security of your chat room. Fortunately, there is a better solution(it is a bit more involved): </p> <p>You can create a plugin (<a href="http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/plugin-dev-guide.html" rel="nofollow">http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/plugin-dev-guide.html</a>) that uses the botz library (<a href="http://community.igniterealtime.org/docs/DOC-1130#comment-5601" rel="nofollow">http://community.igniterealtime.org/docs/DOC-1130#comment-5601</a>). Upon creation of a muc room grant the bot admin privileges to the room. When a user needs to pull down the members list, the user should send the query to the bot, the bot should query the room and relay the results to the user. This design preserves the security of your room and, aside from being fun, botz can be useful beyond this purpose. -- I hope this helps </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload