dasha_uwu
b59af0530c
Deprioritize joins through configured servers
2025-08-31 12:30:27 +05:00
dasha_uwu
44af849ed0
Dedup base join servers
2025-08-31 11:30:10 +05:00
Jason Volk
aa413ae601
Implement room purge after last local user leaves. ( resolves #83 )
...
Consume a state_lock for room delete call.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-30 11:45:32 +00:00
Jason Volk
7c19d1e1ff
Fix unnecessary backfill requests after reaching m.room.create.
...
Cleanup condition.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-30 11:45:32 +00:00
Jason Volk
616f20f273
Fix unused lifetims.
...
Fix unused pub(crate).
Allow implicit hasher.
Fix unused self.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-30 11:13:14 +00:00
Jason Volk
7bc47e58d0
Add state_cache iteration for local pending invitees to room.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-30 10:04:24 +00:00
Jason Volk
6172b9c8ec
Replace legacy federation proto-event formatter.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-30 10:04:24 +00:00
Jason Volk
9c6e0e3350
Stabilize room version 12. ( #126 )
...
Bless complement.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 07:49:36 +00:00
Jason Volk
12bdfe3b66
Optimize backfill_if_required conditions.
...
Optimize backfill_pdu.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
dasha_uwu
54ce221e88
Add active request assert on tls listener shutdown
2025-08-29 06:49:04 +00:00
dasha_uwu
33a16f4831
Make /sync respond early on server shutdown
2025-08-29 06:49:04 +00:00
Jason Volk
d8e6d95f4b
Fix device verification crutch (regression 628597c318); cleanup. ( fixes #134 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jason Volk
9c290bc513
Fix latest key backup determination.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jason Volk
a4520424bd
Adjust several log levels; cleanup unformatted log call.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jason Volk
280d7733fc
Update capability for MSC4133 profile fields.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jason Volk
79e3c898ac
Fix /send_join response event format. Optimize.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jason Volk
757d38e891
Optimize expected auth types checking.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jason Volk
4b66911886
Eliminate redundant duplicate auth and matching room check.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jade Ellis
9db3e35f41
Fix incorrect command descriptions. [ci skip]
2025-08-29 02:17:46 +00:00
Jason Volk
7977512d5d
Fix additional cases for room_id.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 02:17:46 +00:00
Jason Volk
e354be6830
Simplify Pdu from_id_val constructions.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 02:17:46 +00:00
Jason Volk
f58081838e
Log error for send_join auth_check failure.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 02:17:46 +00:00
dasha_uwu
526a138021
Force promotion ( closes #136 )
2025-08-29 02:17:46 +00:00
dasha_uwu
7fa6894334
Remove excessive doc on admin command
2025-08-29 02:17:46 +00:00
Jason Volk
ce6212b161
Add room_version argument and reorg convert_outgoing_federation_event.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-28 23:28:20 +05:00
Jason Volk
0aea56f02a
Optimize OnceServices; simplify init.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-28 23:28:20 +05:00
dasha_uwu
d05d3f710f
Room deletion ( fixes #43 )
2025-08-28 23:28:20 +05:00
Jason Volk
7a3496869b
Remove associated pushers on device delete. ( fixes #120 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-28 23:28:20 +05:00
dasha_uwu
146b72265d
Skip serialization for appservice id
2025-08-28 23:28:20 +05:00
dasha_uwu
120a43cceb
Fix joining restricted rooms with invite
2025-08-28 23:28:20 +05:00
dasha_uwu
c40671bfb0
Remove api crate dependency from admin crate
2025-08-28 23:28:20 +05:00
dasha_uwu
8e9c6661b2
Membership refactor
...
Introduce deactivate, membership services
Move membership and user deactivation functions from api crate into those services
2025-08-28 23:28:20 +05:00
dasha_uwu
6810604629
banned_room_check: pull out common part
2025-08-28 23:28:20 +05:00
dasha_uwu
3dd984eff9
clippy: add must_use attribute
2025-08-28 23:28:20 +05:00
dasha_uwu
bcd4f80149
Move server user presence handling to presence service
2025-08-28 23:28:20 +05:00
dasha_uwu
f51a7b12b5
Make Service.interrupt async
2025-08-28 23:28:20 +05:00
dasha_uwu
3a1649bcaf
Add config option for creating admin room non-federated ( closes #118 )
2025-08-28 23:28:20 +05:00
dasha_uwu
d4421422b2
Remove explicit unstable thirdparty/protocols route
...
Already handled by the other ruma route
2025-08-28 23:28:20 +05:00
dasha_uwu
4884c55be7
Split disable_room, ban_room functions
2025-08-28 23:28:13 +05:00
Jason Volk
a4f589f475
Remove unnecessary recursion_limit.
...
Reduce type_length_limits.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-28 23:20:44 +05: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
26b3a84b88
Fix updated serde type expected by database deserialize_any.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-27 00:41:13 +00: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
4bb83a1972
Fix version 12 outgoing federation format.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-26 02:40:25 +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
2c6dd78502
Reduce log level on router::args returned error.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-11 11:32:53 +00:00
dasha_uwu
6a6f77a100
Simplify feature condition.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-11 10:24:40 +00:00
Jason Volk
a3666fe672
Use member profile rather than global profile for joined_members ( fixes #121 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-10 23:52:03 +00:00
Jason Volk
d7e5c0ccf3
Optimize spaces pageload; pipeline outer loop.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-07 03:16:32 +00:00