Skip to content
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

Fix the redaction test in Quotest #841

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

KitsuneRal
Copy link
Member

Quotest occasionally fails in redactEvent(), and I finally got to looking at the code and understanding why.

The previous implementation was half-wrong in connecting to
addedMessages() instead of the more specific replacedEvent() and then
trying to look through the timeline upon, effectively, the very next
sync after the redaction request, which may easily fail.
Once the redaction event arrives, if the redacted event is not in the
timeline then Room::replacedEvent() won't be emitted.
@KitsuneRal KitsuneRal added the bug/fix The library doesn't work as expected label Dec 2, 2024
Copy link

sonarqubecloud bot commented Dec 2, 2024

@KitsuneRal KitsuneRal merged commit 75d559d into dev Dec 3, 2024
11 checks passed
@KitsuneRal KitsuneRal deleted the kitsune/fix-redaction-test branch December 3, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix The library doesn't work as expected
Projects
Status: 0.9 - Done
Development

Successfully merging this pull request may close these issues.

1 participant