Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent message edits in threads from getting (visually) lost #2944

Closed
wants to merge 2 commits into from

Conversation

justjanne
Copy link
Contributor

@justjanne justjanne commented Dec 6, 2022

Type: Defect
Fixes: element-hq/element-web#23916

  • Separately handle new replies, local echos and old backlog events
  • This resolves the confusion between the handling old backlog events and new replies, which caused the bug

Here's what your changelog entry will look like:

🐛 Bug Fixes

- Separately handle new replies, local echos and old backlog events
- This resolves the confusion between the handling old backlog events and new replies, which caused the bug
if (event.threadRootId !== this.id) return; // ignore echoes for other timelines
if (this.lastEvent === event) return;
if (!event.isRelation(THREAD_RELATION_TYPE.name)) return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am struggling to see why this go removed

@justjanne justjanne closed this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message doesn't change it content when updated
2 participants