Skip to content

Replying to an edited message causes "This event could not be displayed" in Element #227

@phil-s

Description

@phil-s

Seems similar to #226.

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

Tested with current HEAD:

commit 99ee11a67fe2142a6fe401063141a449ba1acfe2
Author: Adam Porter <[email protected]>
Date:   Thu Sep 28 13:23:52 2023 -0500

  Fix: (ement-room-edit-message) Already-edited events

Actions taken

  • Connect to session in both Ement and Element and observe side-by-side. Now, using Ement.el...
  • Write message, e.g. test. Both clients show test.
  • Edit message to test2. Both clients show test2 [edited]
  • Now write a reply to the edited message from each client in turn.

Observed results

Ement.el displays something like this for both replies:

In reply to @phil:<host>
> test2

reply 

While Element shows something like this for the reply sent by Ement.el:

In reply to @phil:<host>
> This event could not be displayed

reply 

Expected results

Element displays test2 as the quote.

Backtrace

No response

Etc.

This looks like much the same issue as #226. Looking at the events...

  • test has ID $ox7euKl9PzczuoJbGwHpTcn2AOV3GatwlcdWwCu2rOA
  • test2 has ID $hSiAg7wawUv6d-LbQgzEcHmoLXxCTu167kjMEUoOR4g
  • The reply to test2 from Ement.el has:
(m.relates_to
  (m.in_reply_to
    (event_id . "$hSiAg7wawUv6d-LbQgzEcHmoLXxCTu167kjMEUoOR4g")))`
  • The reply to test2 from Element has
(m.relates_to
   (m.in_reply_to
    (event_id . "$ox7euKl9PzczuoJbGwHpTcn2AOV3GatwlcdWwCu2rOA")))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions