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

More tweaks and cleanup #845

Merged
merged 6 commits into from
Dec 20, 2024
Merged

More tweaks and cleanup #845

merged 6 commits into from
Dec 20, 2024

Conversation

KitsuneRal
Copy link
Member

Most importantly, sporadic sendReaction test failures fixed.

When a reaction is to an event that has not been loaded in the timeline
there's no point to emit updatedEvent() as there's nothing to update.
This is a limited substitute for std::ranges::to() that is still not
supported by Xcode. With plenty of other range adaptors not in Apple
libc++ either, this can only be used sparingly but it's better this way
than leaving a TODO in every place std::ranges::to() could have been
used.
- FINISH_TEST_IF and FAIL_TEST_IF to collapse all those if/returns when
  you need to stop the test on condition but continue if it doesn't hold
- finishTest() now uses std::source_location instead of C-era macros
The test was occasionally hitting the same target message as the
redaction test, with the reaction test waiting forever to see the
reaction on the message that just got redacted (with reactions being
erased from it as a result).
@KitsuneRal KitsuneRal added the enhancement A feature or change request for the library label Dec 16, 2024
@KitsuneRal KitsuneRal merged commit 757f3ce into dev Dec 20, 2024
11 checks passed
@KitsuneRal KitsuneRal deleted the kitsune/keep-cleaning branch December 20, 2024 17:50
@KitsuneRal KitsuneRal added the bug/fix The library doesn't work as expected label Dec 22, 2024
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 enhancement A feature or change request for the library
Projects
Status: 0.9 - Done
Development

Successfully merging this pull request may close these issues.

2 participants