element-hq / element-hq/element-web

Incorrect collapsed event summary for user who got banned as they joined a room

Open
#23,588 0 comments 0 reactions 0 assignees View on GitHub
A-ELS O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Steps from the infringing user:

1. Get added to a mjolnir ban list
2. Enter a room guarded by mjolnir after being added to the ban list
3. Get banned from the room by mjolnir

From my point of view:

1. View the room
2. Expand collapsed events
3. Compare events with summary display when collapsed

### Outcome

#### What did you expect?

The summary should say something like "[user] joined the room and was banned".

#### What happened instead?

The summary says "[user] removed a message and was banned"

https://user-images.githubusercontent.com/5547783/197755046-5d21df2b-41f5-40f2-a477-573c1dd0267c.mp4

The event with the wrong summary is https://matrix.to/#/!UBhRLVEYYvUWnsljRs:matrix.org/$V6TfYuAsHt1W1FUFfk8oN0EBVaZs_D_VUw1kXxcfTqk?via=matrix.org&via=tchncs.de&via=envs.net

### Operating system

Arch Linux

### Browser information

Firefox 105.0.1

### URL for webapp

develop.element.io

### Application version

Element version: fc0e61b6663a-react-6e73a853a8c7-js-9bdeea0a8d0b, Olm version: 3.2.12

### Homeserver

element.io

### Will you send logs?

Yes

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.