converse.js icon indicating copy to clipboard operation
converse.js copied to clipboard

Strip locked MUC domain from room address input

Open mwild1 opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe.

  1. Deploy a configuration that has a locked MUC domain, e.g. muc.example.org
  2. Click Add a new groupchat
  3. Enter a room address like [email protected]
  4. The @ gets escaped and Converse.js attempts to join room\[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.

mwild1 avatar Oct 23 '20 10:10 mwild1

@bernard-ng: Something you'd be willing to look into?

jcbrand avatar Oct 23 '20 12:10 jcbrand

@bernard-ng: Something you'd be willing to look into?

Yes gladly

bernard-ng avatar Oct 23 '20 13:10 bernard-ng