Jason Volk
10fb1cd192
Purge room synctokens during deletion.
...
Purge last notification read counts.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-11 08:56:38 +00:00
Jason Volk
d73b4332bf
Fix deletion of local leave state to allow sync for clients.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-11 06:20:41 +00:00
Jason Volk
11eeca7e01
Prune one time keys based on reasonable configured limit.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-11 04:27:33 +00:00
Jason Volk
bf8aa57d03
Add config option for dns passthru for appservices. ( #158 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-10 01:17:40 +00:00
Jason Volk
a9f1926654
Use dns_resolver2 per reqwest client builder deprecation notice.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-10 00:59:50 +00:00
Jason Volk
248d778290
Add alternative resolver path with passthru cache-characteristics. ( resolves #158 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-10 00:01:26 +00:00
dasha_uwu
adadafa88f
Fix alias resolution logic; element-web v1.11.111 compat
...
element-hq/element-web#30641
element-hq/element-web#30611
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-09 02:28:19 +00:00
Jason Volk
29c2c8a333
Branch based on config to note sync for push suppression.
...
Minor if-let condition and scope reduction; formatting.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-08 22:25:00 +00:00
tototomate123
6295ca135a
feature marked as experimental and executed rustfmt
2025-09-08 22:25:00 +00:00
tototomate123
b5a9884194
feat(presence,push) optionally suppress push notifications for active users
2025-09-08 22:25:00 +00:00
Jason Volk
be1264965a
Refactor sliding-sync.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-08 00:07:59 +00:00
Jason Volk
3cbe1e25cd
Cleanup Resolver construction/configuration.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-08 00:07:59 +00:00
Jason Volk
f6c88e3a16
Add query for alias existing; tweak tracing spans.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
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
Jason Volk
86781522b6
Allow state visibility for once-joined users when history_visibility=shared.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
Jason Volk
3a78ba2b16
Support v1/v2 conditions for join/leave, creation and other operations. ( #12 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
Jason Volk
685946faed
Cleanup validate/verify suite room version related; optimize event_id insert. ( #12 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
Jason Volk
13c9385ef7
Add v1/v2 support to gen_event_id() scheme. ( #12 )
...
Add v1/v2 and improve reference and content hashing suite. (#12 )
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
Jason Volk
6a583a359e
Support v1/v2 prev_events/auth_events outgoing federation format. ( #12 )
...
Support v1/v2 prev_events/auth_events when handling outlier pdu. (#12 )
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00:00
Jason Volk
eec6e45358
Improve error messages for missing auth event and invalid join validations.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-05 05:45:41 +00: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
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
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
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
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
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
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
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
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
4884c55be7
Split disable_room, ban_room functions
2025-08-28 23:28:13 +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
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
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
dasha_uwu
6a6f77a100
Simplify feature condition.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-11 10:24:40 +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
Jason Volk
00f11a9e8f
Additional instrumentation around global counter events.
2025-08-06 06:45:43 +00:00
Jason Volk
b00361d274
Add specific shorteventid to shortstatehash query function.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-04 18:55:37 +00:00
Jason Volk
fb17aa19bf
Add configs for creating the admin room and granting first user.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-04 18:55:37 +00:00