Ginger
3c0146d437
feat: Implement a migration to fix busted local invites
2026-02-10 02:29:11 +00:00
timedout
0ea0d09b97
fix: Don't fail open when a PDU doesn't have a short state hash
2026-02-06 18:09:09 +00:00
Ginger
0eff173c0b
fix(sync/v3): Further cleanup + improve incremental sync consistency
2025-12-07 19:58:24 +00:00
Ginger
2940bc69c1
fix(sync/v3): Cleanup part 1: mostly fix redundant data in state
2025-12-07 19:58:24 +00:00
timedout
fbf48addc7
fix(user_can): Fix room creators being unable to redact events in v12 rooms
2025-10-27 14:34:50 +00:00
nexy7574
7e4071c117
Implement room v12 ( #943 )
...
**Does not yet work!** Currently, state resolution does not correctly resolve conflicting states. Everything else appears to work as expected, so stateres will be fixed soon, then we should be clear for takeoff.
Also: a lot of things currently accept a nullable room ID that really just don't need to. This will need tidying up before merge. Some authentication checks have also been disabled temporarily but nothing important.
A lot of things are tagged with `TODO(hydra)`, those need resolving before merge. External contributors should PR to the `hydra/public` branch, *not* ` main`.
---
This PR should be squash merged.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/943
Co-authored-by: nexy7574 <git@nexy7574.co.uk >
Co-committed-by: nexy7574 <git@nexy7574.co.uk >
2025-09-17 20:46:03 +00:00
nexy7574
c639228f4d
style(space-upgrades): Remove unused import left over from 6691b7672b
2025-07-19 18:37:45 +01:00
nexy7574
b2b18002ea
fix(space-upgrades): Remove unused helper function
2025-07-19 18:37:45 +01:00
nexy7574
b2883c3d6e
feat(space-upgrades): Update parent spaces in upgrade
...
This relies on the room being upgraded referencing
the space itself, but there isn't an easy way to
do it otherwise.
2025-07-19 18:35:58 +01:00
Jason Volk
364293608d
Post-formatting aesthetic and spacing corrections
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:17:06 +01:00
Jason Volk
500faa8d7f
simplify space join rules related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 22:12:33 +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
Jason Volk
b7109131e2
further simplify get_missing_events; various log calls
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +00:00
June Clementine Strawberry
0e0b8cc403
fixup+update msc3266, add fed support, parallelise IO
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 00:56:37 -04:00
June Clementine Strawberry
1036f8dfa8
default shared history vis on unknown visibilities, drop needless error log
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:46:01 -04:00
June Clementine Strawberry
ea246d91d9
remove pointless and buggy *_visibility in-memory caches
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:38:47 -04:00
Jason Volk
d60920c728
workaround some large type name length issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 03:00:53 +00:00
Jason Volk
9ce95a7030
make service memory_usage()/clear_cache() async trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
June Clementine Strawberry
17e0384eeb
ignore errors instead of expecting for state gathering
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:11:43 -05: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
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
e123a5b660
add state accessories for iterating state_keys of a type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
b3271e0d65
split state_accessor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
106bcd30b7
optimize incremental sync state diff
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
4add39d0fe
cache compressed state in a sorted structure for logarithmic queries with partial keys
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
2fa9621f3a
flatten state_full_shortids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +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
Jason Volk
ad0b0af955
combine state_accessor data into mod
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
b8f8f68634
improve memory-usage output w/ more byte-sizes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
2259e2c82f
batch queries to maximize throughput
...
query-side streams for first level of callsites
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
strawberry
74c5bfd311
dont allow m.room.server_acl to be redacted
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:31:11 -05:00
strawberry
6c96acc482
use fast binary_search for some const slices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:41:50 -05:00
strawberry
77e0b76408
apply new rustfmt.toml changes, fix some clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:00:41 -05:00
strawberry
0317cc8cc5
rename conduit to conduwuit finally
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-14 22:24:45 -05:00
Jason Volk
aba88ccead
misc tracing span tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 06:20:30 +00:00
Jason Volk
784ccd6bad
return stream from multi_get_eventid_from_short
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
320b0680bd
pipeline various loops
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
4a3cc9fffa
de-arc state_full_ids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-30 08:38:12 +00:00
Jason Volk
6175e72f1c
simplify get_pdu() interface; eliminate unconditional Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 08:47:02 +00:00
Jason Volk
58be22e695
fix new lints; clippy::unnecessary-map-or
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 06:58:45 +00:00
Jason Volk
f69c596f56
generalize return value wrapping to not require Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-26 03:45:21 +00:00
Jason Volk
238523f177
cleanup: reuse api rather than querying db
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-26 03:45:21 +00:00
Jason Volk
c519a40cb8
use multiget for shortid conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:32 +00:00
Jason Volk
e257512aa7
relax state visibility for invited modes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
411c60009d
enrich state iteration interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
strawberry
4f0bdb5194
general misc bug fixes and slight improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
Jason Volk
9da523c004
refactor for stronger RawPduId type
...
implement standard traits for PduCount
enable serde for arrayvec
typedef various shortid's
pducount simplifications
split parts of pdu_metadata service to core/pdu and api/relations
remove some yields; improve var names/syntax
tweak types for limit timeline limit arguments
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
f746be82c1
typename some loose u64 ShortId's
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
0bc6fdd589
Refactor ShortStateInfo et al to properly named structures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
7fcc6d11a4
de-wrap state_accessor.server_can_see_event
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00