Kegan Dougal 2285a7bef9 bugfix: pass events through usercache so it can return full timelines on INSERT
We lazily load timelines for rooms as the client fetches them. If a previously
lazily loaded timeine goes out of the window then back in it results in a
DELETE/INSERT. We would detect that we already have a timeline for this room
and just return that, however that timeline was stale. We now keep this timeline
in sync with live events.

With regression test.
2021-10-26 18:01:57 +01:00
..
2021-10-26 10:01:45 +01:00