Automattic / Automattic/chatrix

Expose the Invalid Room Alias error in a better way

Open
#238 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
45
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When you set an invalid alias, you can only see this in the developer tools of the browser

```
HomeServerError: Room alias invalid on GET https://wporg.automattrix.com/_matrix/client/v3/directory/room/%20%23training%3Acommunity.wordpress.org?
```

- [ ] Validate the room alias field for syntax (in the above example I had an accidental space in front of the room name).
- [ ] Expose the error message if the room alias is invalid despite being syntactically correct.

Contributor guide

Open the contributing guide

Research direction

Start by locating the room alias input and the request handling for the Matrix room-directory lookup. Reproduce the leading-space example, then verify both checklist items: syntactically invalid aliases are rejected in the field, and valid-looking aliases that the server rejects display the error outside browser developer tools.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.