Skip to content

After repeated edits in Ement, a message becomes hidden/missing in Element #226

@phil-s

Description

@phil-s

OS/platform

Ubuntu GNU/Linux 22.04

Emacs version and provenance

Emacs 29.1 compiled from source.

Emacs command

emacs

Emacs frame type

GUI

Ement package version and provenance

Issue verified with ement-0.12 from GNU ELPA via package-install

Actions taken

  • Connect to session in both Ement and Element and observe side-by-side.
  • Write message, e.g. test. Both clients show test.
  • Edit message to test2. Both clients show test2 [edited]
  • Edit message again to test3. Ement shows test3 [edited]. Element no longer shows the message text at all, although my username is still present at that position.

Observed results

Element fails to render an edit of an edit, while Ement does display it. This suggests that I may have been inadvertently hiding my messages from others without realising it.

Expected results

Element displays the twice-edited message.

Backtrace

No response

Etc.

I can edit messages repeatedly in Element without problem.

Looking at event data, I think the difference is this:

When I create a message with ID foo and repeatedly edit it in Element, the event for each and every edit says:

(m.relates_to
   (event_id . "foo")
   (rel_type . "m.replace"))

Conversely when I create a message with ID foo and repeatedly edit it in Ement, each event relates_to the distinct ID of the previous edit event in the series; so only the first edit looks like the example above, and each subsequent edit event (i.e. all of the ones which Element doesn't display) have a different event_id value in that section.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions