-
Notifications
You must be signed in to change notification settings - Fork 44
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
Deleting an edited message inconsistent between Ement.el and Element #228
Comments
Thanks again. |
Well, I guess we'll have to look more closely at the spec. It's unclear to me what's happening here. For example, are we allowed to redact an edit? If so, does just the edit go away, and the original message return to its previous state? Or are we supposed to redact the original event ID, even if it was subsequently edited? Much of the code in Ement was written to pass around event structs and get the ID and other fields from them as required; fixing this may require changing some more places to accept events or IDs as arguments, or having some functions "magically" use the ID of the original event, or having some interactive forms do that ID-resolving before calling the functions that do the work. It should be relatively straightforward, but the best solution is not yet clear. |
https://spec.matrix.org/v1.8/client-server-api/#redactions-of-edited-events says:
|
Use in (ement-room-edit-message). See #226, #227, #228. Reported-by: Phil Sainty <[email protected]>
See #226, #227, #228. Reported-by: Phil Sainty <[email protected]>
Seems like the correct thing to do. See <https://spec.matrix.org/v1.8/client-server-api/#redactions-of-edited-events>. Fixes #228. Reported-by: Phil Sainty <[email protected]>
See #226, #227, #228. Reported-by: Phil Sainty <[email protected]>
I think that does it. I tested as you described and it all seems to work correctly in both clients now. Please let me know what you find out. Thanks for reporting these issues. |
Excellent. I've done some basic testing and it looks good to me now -- things deleted in Ement.el show as deleted in Element as well, and vice versa. |
Again, like #226 and #227. Apologies for the brevity on this one; hopefully you can reproduce easily.
As before, have both clients running together...
Editing and deleting a message using Element
Using Element:
Observe that over in Ement.el, the message was not deleted -- not unless you additionally delete it using Ement.el.
Editing and deleting a message using Ement.el
Using Ement.el:
Observe that over in Element you now have two different events:
The text was updated successfully, but these errors were encountered: