How to change user role in MUC

Hi,

the documentation about MUC http://www.jivesoftware.org/builds/smack/docs/latest/documentation/extensions/mu c.html#role

states that “roles are temporary in that they do not persist across a user’‘s visits to the room and can change during the course of an occupant’'s visit to the room.”[/i]

However, I cannot find how to change it programmatically. I’'ve gone thru the javadoc, but I could not find anything useful.

Thx,

Fabio

Ciao Fabio,

Take a look at the MultiUserChat#grant* methods. Also make sure that the user that is going to change the role/affiliation has enough permissions. Otherwise, the server will answer an error to the client.

Regards,

– Gato

As always, thanks a lot, Gato!

Bye,

Fabio