-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Support redactions and relations of/with unsent events. #947
Conversation
5210826
to
10308a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! I am particularly curious about the changes to redactions on remote echo, so I'd like to have another review for that bit.
Please note I am on holiday Thursday - Friday, so you may need a different reviewer if I am away when the next round appears.
as they might need to wait until their target has been sent
before the next event is sent. This is needed to update the target id if it was the local id of the event that was just sent.
in case the redacted event hasn't been sent yet
listeners shouldn't care about the original event, as it's removed from the Relations collection already.
because the RedactionDimensions was trying to redact an event that was already redacted after it's remote echo had come in but it's redaction hadn't synced yet.
it'll cause the reactions counter to go up and down while reactions and redactions come in. In case the local redaction gets cancelled, Room._revertRedactionLocalEcho will add the relation back to the relations collection.
Co-Authored-By: J. Ryan Stinnett <[email protected]>
Co-Authored-By: J. Ryan Stinnett <[email protected]>
22e9566
to
6059df1
Compare
Could someone have a second look as Ryan suggested? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense!
PR does several things to make this work:
Hammering the react button now works as expected with local echo:
Part of: element-hq/element-web#9860
Fixes: element-hq/element-web#10034