3 Commits

Author SHA1 Message Date
Kegan Dougal
6f2a00a2ce Review comments 2023-11-06 12:33:30 +00:00
Kegan Dougal
7e06813fe2 Fix #365: only return the last joined range
If we returned multiple distinct ranges, we always assumed that
the history visibility was "joined", so we would never return
events in the invite/shared state. This would be fine if the client
had a way to fetch those events sent before they were joined, but
they did not have a way as the prev_batch token would not be set
correctly. We now only return a single range of events and the prev
batch for /that/ range only, and defer to the upstream HS for
history visibility calculations.

Add end-to-end test to assert this new behaviour works.
2023-11-06 11:54:15 +00:00
Kegan Dougal
89c4198765 Add regression test for #365 2023-11-06 10:44:39 +00:00