element-hq / element-hq/element-web

Start a chat dialog allows creating a chat with invalid MXID formats

Open
#15,798 0 comments 0 reactions 0 assignees View on GitHub
A-Create-Room P2 S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

![image](https://user-images.githubusercontent.com/1342360/99961165-d86f3880-2d85-11eb-8f25-a89e2cc88837.png)

Element allows you to try and create a room with whatever interpretation of a username you'd like. Here I'm attempting to create a chat with someone with an invalid domain name (`amorgan:xyz` vs `amorgan.xyz`). Element will accept this, and try to create room with this malformed MXID.

This requires the homeserver to be the one to respond with an error, which Element will inform the user about in a slightly vague manner.

![image](https://user-images.githubusercontent.com/1342360/99961253-f8066100-2d85-11eb-9172-411efa1319f6.png)

It would be nice if Element could validate input, either upon hitting "Go" or upon creating a pill, and giving the user a clear error message as to what (and which pill) is wrong.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.