1
0
Fork 0
mirror of https://github.com/matrix-org/dendrite.git synced 2025-03-01 22:34:27 -06:00
Commit graph

8 commits

Author SHA1 Message Date
Till c136a450d5
Fix newly joined users presence ()
Fixes  
Also refactors the presence stream to not hit the database for every
user, instead queries all users at once now.
2022-12-08 08:25:03 +01:00
Neil Alexander 98d3f88bfb
Move prev_batch calculation ()
This might help .
2022-11-03 16:56:21 +00:00
Till e79bfd8fd5
Get state deltas without filters ()
This makes the following changes:
- get state deltas without the user supplied filter, so we can actually
"calculate" state transitions
- closes `stmt` when using SQLite
- Adds presence for users who newly joined a room, even if the syncing
user already knows about the presence status (should fix
https://github.com/matrix-org/complement/pull/516)
2022-10-19 14:05:39 +02:00
Neil Alexander 23a3e04579
Event relations ()
This adds support for tracking `m.relates_to`, as well as adding support
for the various `/room/{roomID}/relations/...` endpoints to the CS API.
2022-10-13 14:50:52 +01:00
Neil Alexander 3920b9f9b6
Tweak GetStateDeltas behaviour ()
Improves the control flow of `GetStateDeltas` for clarity and possibly
also fixes a bug where duplicate state delta entries could be inserted
with different memberships instead of being correctly overridden by
`join`.
2022-10-11 10:58:34 +01:00
Neil Alexander d32f60249d
Modify sync transaction behaviour ()
This now uses a transaction per stream, so that errors in one stream
don't propagate to another, and we therefore no longer need to do hacks
to reopen a new transaction after aborting a failed one.
2022-10-03 11:38:20 +01:00
Neil Alexander 0116db79c6
Reset transaction after a failure 2022-09-30 17:07:37 +01:00
Neil Alexander 6348486a13
Transactional isolation for /sync ()
This should transactional snapshot isolation for `/sync` etc requests.

For now we don't use repeatable read due to some odd test failures with
invites.
2022-09-30 12:48:10 +01:00