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

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

More tweaks and cleanup #845

wants to merge 6 commits into from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or change request for the library
Projects
Status: In work
Development

Successfully merging this pull request may close these issues.

1 participant