You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XEP-0045 MUC considers that the "visitor" role is related to the room "moderated" option. But the XEP is not very clear about what we should do when an occupant has "visitor" role on an unmoderated room.
There is just this, somewhere hidden in the middle of the XEP: "** An implementation MAY grant voice by default to visitors in unmoderated rooms."
If we test with the Prosody server, and with ConverseJS as client, we can do "/mute XXX" in an unmoderated room.
This will indeed set the occupant as "visitor", and bounce all his messages.
But in such case, ConverseJS does not disable the message field. This is because of this part of the code:
Describe the bug
XEP-0045 MUC considers that the "visitor" role is related to the room "moderated" option. But the XEP is not very clear about what we should do when an occupant has "visitor" role on an unmoderated room.
There is just this, somewhere hidden in the middle of the XEP: "** An implementation MAY grant voice by default to visitors in unmoderated rooms."
If we test with the Prosody server, and with ConverseJS as client, we can do "/mute XXX" in an unmoderated room.
This will indeed set the occupant as "visitor", and bounce all his messages.
But in such case, ConverseJS does not disable the message field. This is because of this part of the code:
I think we should remove the test on
this.features.get('moderated')
.To Reproduce
Steps to reproduce the behavior:
/mute the_other_account
Expected behavior
Message field should be disabled for the visitor.
The text was updated successfully, but these errors were encountered: