5 Commits

Author SHA1 Message Date
Kegan Dougal
a7eed93722 Add comprehensive regression test for GlobalSnapshot(); ensure we clear db conns when tests end 2023-01-18 14:54:26 +00:00
Kegan Dougal
48613956d1 Add UserCache and move unread count tracking to it
Keep it pure (not dependent on `state.Storage`) to make testing
easier. The responsibility for fanning out user cache updates
is with the Handler as it generally deals with glue code.
2021-10-11 16:22:41 +01:00
Kegan Dougal
4b377b3b6d Read unread counts on startup; cache counts when live streaming
With a few more tests
2021-10-08 13:31:30 +01:00
Kegan Dougal
c3486d7ff3 bugfix: unread table placeholder args 2021-10-08 13:10:14 +01:00
Kegan Dougal
fb9394d73b Add UnreadTable to track per-user per-room unread counters
With tests. Add function to V2DataReceiver interface.
2021-10-08 12:31:56 +01:00