question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeline displays edits to state events incorrectly

See original GitHub issue

Steps to reproduce

Suppose I send an m.room.topic event with this content:

{
  "topic":"spam spam spam spam", 
  "m.new_content": {"topic": "normal topic"},
  "m.relates_to": {"rel_type":"m.replace","event_id":"<previous topic event>"}
}

This changes the topic of the room to spam spam spam spam. However, the timeline replaces the previous topic change event with:

image

(it doesn’t even label it (edited) or allow you to view the edit history).

I feel like we probably shouldn’t process edits of state events (or indeed anything that’s not a (possibly encrypted) m.room.message).

Outcome

What did you expect?

The timeline should reflect reality. Since there were two separate topic changes, I think these should be shown as separate events, and the m.replace relation should be ignored.

What happened instead?

The timeline showed a state change that never happened

Operating system

No response

Browser information

No response

URL for webapp

develop.element.io

Application version

Element version: f46a6f2d920b-react-70cdd57a5c61-js-540514c805ea Olm version: 3.2.8

Homeserver

No response

Will you send logs?

No

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
richvdhcommented, Apr 20, 2022

The MSC explicitly says not state events, but yes you’re right in that it doesn’t specify an allow set

yeah, tbh I’m treating that “edge cases” section as “a bunch of stuff we haven’t yet defined”. But fine, let’s do that.

Polls, stickers.

That’s super-helpful, thanks.

0reactions
richvdhcommented, May 19, 2022

I’m not entirely convinced this is fixed. It’s better, but not great. See #22280

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a timeline in PowerPoint for the web - Microsoft Support
Learn how to create a timeline in PowerPoint for the web. Use Microsoft PowerPoint to create a timeline with milestone dates and descriptions....
Read more >
40+ Timeline Templates, Examples and Design Tips - Venngage
A lot of event planning is virtual these days. As a marketer, you may feel overwhelmed by the changes. Using an event timeline...
Read more >
How to Turn Off Track Changes in Word
1) Check to see if there are any comments or tracked changes in the document: Go to the “Review” tab and find the...
Read more >
COMMON ERRORS IN KRONOS AND HOW TO FIX THEM
Employees and supervisors should not be adding, editing or deleting these records. Incorrectly recording overtime hours. Non-exempt employees who have approval ...
Read more >
Timeline won't load... - Help - Zendesk
When your Timeline isn't working, the best step to ask for help is to provide a link to the spreadsheet you're using. Most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found