element-call icon indicating copy to clipboard operation
element-call copied to clipboard

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

Open AndrewFerr opened this issue 1 year ago • 1 comments

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

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

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.

AndrewFerr avatar Apr 23 '24 09:04 AndrewFerr

Some ban flows are formatted neatly, but others are not:

  • knock room: leave > lobby > knock > ban
    • neat
    • shows "Banned / You have been banned from the room"
    • analogous to a knock being declined
  • knock/public room: leave > lobby (> knock > invite) > join > ban
    • neat
    • shows same as above
    • analogous to being removed from a call
  • public room: ban > lobby
    • UGLY
    • shows MatrixError: [403] You are banned from this room (https://{server_name}/_matrix/client/v3/join/{room_id}?server_name={server_name})
  • knock room: ban > lobby > knock
    • UGLY
    • shows MatrixError: [403] Cannot knock user who was banned (https://{server_name}/_matrix/client/v3/knock/{room_id}?server_name={server_name})

AndrewFerr avatar May 02 '24 14:05 AndrewFerr