element-hq / element-hq/element-web

MSC4155 invite rejection errors should appear for users.

Open
#30,161 0 comments 0 reactions 1 assignee Claimed by @Half-Shot View on GitHub
A-Error-Message A-Invite O-Uncommon T-Enhancement T-Feature
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Your use case

#### What would you like to do?

When I invite a user and the user has blocked me via MSC4155, I would like to see an error to say that I have been blocked.

Via:

- New DM creation
- Bulk invites
- Slash command invites
- (other ways to invite?)

#### Why would you like to do it?

To make it clear that an invite failed rather than the application looking broken.

#### How would you like to achieve it?

Intercept `ORG.MATRIX.MSC4155.M_INVITE_BLOCKED` errors and display helpful text.

### Have you considered any alternatives?

No, but we have a nice error code we should use.

### Additional context

_No response_

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.