This fixes a bug where the `/relations` API with `dir=f` would skip the first item of each page (except the first page), causing incomplete data to be returned to the client.
synapse.rest.client.account
/_matrix/client/v3/rooms/{roomId}/invite
id_access_token
tests/rest/client
synapse.api.auth.Auth
Requester
UserID