converse.js
converse.js copied to clipboard
Strip locked MUC domain from room address input
Is your feature request related to a problem? Please describe.
- Deploy a configuration that has a locked MUC domain, e.g.
muc.example.org
- Click Add a new groupchat
- Enter a room address like
[email protected]
- The
@
gets escaped and Converse.js attempts to joinroom\[email protected]
Describe the solution you'd like
If the input ends with @<locked domain>
then it should be stripped before further processing.
Rationale
If the entered address ends with @<locked domain>
it is almost certainly not the user's intention to have the full input as the room name, but means the user entered the full address of a room.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
@bernard-ng: Something you'd be willing to look into?
@bernard-ng: Something you'd be willing to look into?
Yes gladly