element-hq / element-hq/element-android

Redacting a redaction message with devtools breaks rooms

Open
#8,553 1 comment 0 reactions 0 assignees View on GitHub
A-Redaction O-Uncommon S-Major T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Create a new room and invite users Alice and Bob
2. A: `hello`
3. A: `to be redacted`
4. A: redacts message `to be redacted`
5. A: redacts hidden redaction event in timeline using devtools
6. A: `after redaction redaction`
7. B: `hello`

After message 7 the chat is permanently bugged in the android app.
All further messages will be in a collapsed block.
Expanding said block shows all messages.
When the chat is reopened the block is collapsed per default annoying all users.

### Outcome

#### What did you expect?
The redaction redaction should show the original message I guess?
In any case the chat should remain usable.
#### What happened instead?
The chat is permanently broken with a collapse block at the end.

## End result

> Note: I don't think it matters when the user joins.

A (black icon) and B (anime thing).

### Element desktop view of the bugged chat (A)

![image](https://github.com/vector-im/element-android/assets/27293675/4aee50a6-8591-433d-938d-3404d4c91034)
### Android view of the bugged chat (B)
![Screenshot_20230622_123041_Element](https://github.com/vector-im/element-android/assets/27293675/2cf52267-c4eb-42fc-b3ef-3a75d3c3b2f6)
![Screenshot_20230622_123044_Element](https://github.com/vector-im/element-android/assets/27293675/e1ffd20f-1985-473e-8786-ad62ce5371da)

### Your phone model

Samsung S22

### Operating system version

Android 13

### Application version and app store

1.5.32 [40105322] (G-8dcb5f70)

### Homeserver

Synapse

### Will you send logs?

Yes

### Are you willing to provide a PR?

No

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.