continuwuity/src/api
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
..
client fix missing next_batch for search 2024-06-12 14:04:47 -04:00
ruma_wrapper Fix use-self 2024-06-09 20:06:50 +00:00
server log client/remote IP address on various routes tracing calls 2024-06-10 21:04:51 -04:00
Cargo.toml extract client ip from connection state 2024-06-07 02:00:28 +00:00
mod.rs rename api::client_server to api::client 2024-06-06 18:21:40 +00:00
router.rs rename api::client_server to api::client 2024-06-06 18:21:40 +00:00