element-hq / element-hq/element-web

Redacting a replacement / edit renders the original event empty in the timeline

Open
#32,863 0 comments 0 reactions 0 assignees View on GitHub
A-Message-Editing A-Redaction A-Timeline O-Uncommon S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Send a message "1"
Image
2. Edit the message to "2"
Image
3. Open the edit history and remove the edit "2"
Image
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"
Image
5. Close the edit history and notice how the timeline clears the original message and now only renders a blank / empty space
Image
6. Restart Element Desktop and notice how the original message "1" now appears correctly
Image

### 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

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.