element-hq / element-hq/element-web
Redacting a replacement / edit renders the original event empty in the timeline
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. Send a message "1"
2. Edit the message to "2"
3. Open the edit history and remove the edit "2"
4. Notice how the history now only shows the original message "1" while the timeline in the background still shows "2 (edited)" _but also_ the redacted event "Message deleted"
5. Close the edit history and notice how the timeline clears the original message and now only renders a blank / empty space
6. Restart Element Desktop and notice how the original message "1" now appears correctly
### Outcome
#### What did you expect?
"2 (edited)" to change back to "1" before closing the edit history and to stay like this after closing the edit history.
#### What happened instead?
The edited message still appeared even though the redacted edit was already rendered in the timeline.
The edited message switched to an empty content after closing the history.
### Operating system
macOS
### Application version
Element version: 1.12.12 Crypto version: Rust SDK 0.16.0 (82e97d4), Vodozemac 0.9.0
### How did you install the app?
Element website
### Homeserver
matrix.org
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.