- XMPP client joins a moderated XMPP room.
- An admin changes the client’s role to Visitor.
- Client posts a message to the room
- Nothing will be posted to the room and an error stanza of type forbidden will be received from the server, but the code does not check for it.
There maybe a more elegant way of doing this, but I added a responseFilter to check for this. If this is acceptable, the same change would have to be made to the version of sendMessage that takes a Message as the parameter.
diff.txt (3.0 KB)