continuwuity/src
Benjamin Lee 73da353e52 fix missing next_batch for search
The previous code would fail to return next_batch if any of the events
in the window were not visible to the user. It would also return an
unnecessary next_batch when no more results are available if the total
number of results is exactly `skip + limit`.

This bug will become much more severe with a full filtering
implementation, because we will be more likely to trigger it by
filtering out events in a search call. Currently, it is only possible to
trigger with rooms that have history visibility set to "invited" or
"joined".

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-06-12 14:04:47 -04:00
..
admin remove pfps/avatars and display names upon deactivation 2024-06-11 01:19:18 -04:00
api fix missing next_batch for search 2024-06-12 14:04:47 -04:00
core log client/remote IP address on various routes tracing calls 2024-06-10 21:04:51 -04:00
database Fix use-self 2024-06-09 20:06:50 +00:00
main Fix use-self 2024-06-09 20:06:50 +00:00
router log client/remote IP address on various routes tracing calls 2024-06-10 21:04:51 -04:00
service add replaces_state and prev_sender in unsigned for membership changes 2024-06-11 13:03:32 -04:00