Jason Volk
3deebeab78
Fix sliding-sync room_avatar conditions.
...
Eliminate jsOption from non-sliding-sync avatar related codepaths.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
dasha_uwu
b5890b9664
Services refactor
...
Replace structs of Dep<Service> with OnceServices, so each service has a Services reference
Remove service name => Service map
Flatten Services.rooms
Make reqwest Clients lazy initialized (client service)
2025-08-28 23:15:59 +05:00
Jason Volk
3430d4ac86
Improved solution to current_shortstatehash > next_batch. ( 59b62b1)
...
`current_shortstatehash` is now calculated from timeline which is already
upper-bound by the `next_batch` snapshot. Previously `current_shortstatehash`
was truly current and had to be disallowed from exceeding `next_batch` by
ignoring the room during sync until a future pass when these values finally
met that condition.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-27 00:41:12 +00:00
Jason Volk
3e2f2fbffa
Bump Ruma post-hydra.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-27 00:41:12 +00:00
Jason Volk
628597c318
State-reset and security mitigations.
...
Upgrade Ruma to present.
The following are intentionally benign for activation in a later commit:
- Hydra backports not default.
- Room version 12 not default.
- Room version 12 not listed as stable.
Do not enable them manually or you can brick your database.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-11 18:45:28 +00:00
Jason Volk
e9d0baa32e
Add granular timeout configs for sync longpolling.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-27 11:34:15 +00:00
Jason Volk
730920b571
Collect v5 typing events concurrent with other extensions.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-27 07:04:10 +00:00
Jason Volk
ba51748ad3
Add missing upper-bounded calls; improve snake-sync windowing.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-26 05:52:30 +00:00
Jason Volk
c6836e51b2
Add upper-bound to readreceipts_since() and callsites.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-26 04:44:09 +00:00
Jason Volk
e09a2c0e0f
Window sync ranges below any partially completed writes.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-25 21:55:37 +00:00
Jason Volk
992abfab8f
Separate cached body from request body in snake-sync; cleanup.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-25 21:55:37 +00:00
Jason Volk
0fcb072239
Refactor counter increment sites for TwoPhaseCounter.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-25 10:32:52 +00:00
Jason Volk
299d3230a1
Optimize typing event collection.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-24 22:17:30 +00:00
Tyler Mayoff
9ea8fbc482
Add typing indicators to sync v5.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
2025-07-24 22:17:30 +00:00
Jason Volk
2a627baa96
Fix excessive nesting.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-24 04:07:27 +00:00
Jason Volk
c8d35cca57
Refactor to async closures.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-24 04:07:27 +00:00
Tyler Mayoff
a340e6786d
use room names first and only fallback to heroes if not available
2025-07-07 07:36:51 +00:00
Jason Volk
57c519bbb8
Toward abstracting Pdu into trait Event.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-11 07:02:14 +00:00
Jason Volk
76509830e6
chain_width to 50
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-22 04:42:34 +00:00
Jason Volk
9b658d86b2
Rename crates.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-22 04:37:49 +00:00
Jason Volk
e0508958b7
increase snake sync asynchronicity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-13 05:12:52 +00:00
Jason Volk
ccf10c6b47
modest cleanup of snake sync service related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-09 03:40:44 +00:00
Jason Volk
532dfd004d
move core::pdu and core::state_res into core::matrix::
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
June Clementine Strawberry
f14756fb76
leave room locally if room is banned, rescind knocks on deactivation too
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 12:21:16 -04:00
Jason Volk
bee4c6255a
reorg PduEvent strip tools and callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
June Clementine Strawberry
a1e1f40ded
run cargo fix for rust 2024 changes and rustfmt
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 01:17:45 -05:00
Jason Volk
f2ca670c3b
optimize further into state-res with SmallString
...
triage and de-lints for state-res.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
0a9a9b3c92
larcen state-res from ruma
2025-02-16 17:40:21 -05:00
Jason Volk
b872f8e593
optimize with SmallString; consolidate related re-exports
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
5e59ce37c4
snapshot sync results at next_batch upper-bound
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
af399fd517
flatten state accessor iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
morguldir
6cb3275be0
Add initial MSC4186 (Simplified Sliding Sync) implementation
...
Signed-off-by: morguldir <morguldir@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-14 15:09:51 +01:00