element-hq / element-hq/element-call

Better UI for trying to enter a room you're banned from

Open
#2,331 1 comment 0 reactions 0 assignees View on GitHub
T-Enhancement
Dominant language
TypeScript
Stars
996
Forks
213
Avg merge
1d 6h
Merged PRs (30d)
54

Description

### Your use case

#### What would you like to do?
When I try to join a call for a room that I am banned from, I would like to see a clearer message that I am banned. Currently, a verbose error is shown.

![image](https://github.com/element-hq/element-call/assets/3271094/addb236a-3aec-4a69-9621-66187426abca)

#### Why would you like to do it?
The current error message makes it seem like something broke. Having a clearer message will better communicate the intentional behaviour of being unable to access a call you are banned from.

#### How would you like to achieve it?
With a custom error message, along the lines of this mockup:

![image](https://github.com/element-hq/element-call/assets/3271094/6de9c4ce-7390-4b8c-9ed4-ae2c8e0f615c)

### Have you considered any alternatives?

No, because IMO a custom error message is the clearest solution, is easily achievable, and is easy to replace the existing error message with.

### Additional context

There is already a custom error message for being removed from a room. Something similar should work for a ban message.

Contributor guide

Open the contributing guide

Research direction

Start by locating the code that handles attempts to join a room and the existing custom error message for being removed from a room. Compare the current banned-room error with the linked mockup and make the failure clearly state that access is denied because the user is banned; verify the resulting UI manually.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.