5748 Commits

Author SHA1 Message Date
8635b434cd t 2025-03-09 09:34:08 +08:00
strawberry
f5667c6292
dont fail req deserialisation over empty push response body
Signed-off-by: strawberry <strawberry@puppygock.gay>
2025-02-07 17:59:02 -05:00
Jason Volk
7da56bf7f4 fix some tests
Signed-off-by: Jason Volk <jason@zemos.net>
2025-02-05 11:26:08 +00:00
Jason Volk
0120acc116 fix doc lints
Signed-off-by: Jason Volk <jason@zemos.net>
2025-02-05 10:34:43 +00:00
Jason Volk
fa3abc9431 fix missing api feature for ruma-common from ruma-server-util
Signed-off-by: Jason Volk <jason@zemos.net>
2025-02-05 10:33:32 +00:00
Jason Volk
8cfc0a6bc6 fix missing pushrules in test
Signed-off-by: Jason Volk <jason@zemos.net>
2025-02-05 10:17:16 +00:00
strawberry
517ac45722
dont alias receive_ephemeral to de.sorunome.msc2409.push_ephemeral
Signed-off-by: strawberry <strawberry@puppygock.gay>
2025-02-05 01:25:09 -05:00
Jason Volk
010ae6daad add missing TimelineEventType -> StateEventType conversion replacing anti-pattern to_string().into()
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-29 23:03:04 +00:00
Jason Volk
b560338b2a reduce several tracing spans to debug level
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-23 04:36:37 +00:00
Jason Volk
427877d5bc identifiers: add clone from owned reference
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-22 06:30:05 +00:00
Kévin Commaille
c4f55b3990 client-api: Fix deserialization of KnockedRoom
`knock_state` in `KnockedRoom` and `events` in `KnockState` are no longer
required during deserialization and are no longer serialized if they are empty.

This was a deviation from the spec, those fields were never required.
2025-01-02 18:44:25 -05:00
Yorusaka Miyabi
ec42dd491a events: Add unstable support for MSC2545 for image packs 2025-01-02 18:44:08 -05:00
Kévin Commaille
0a37df11cd events: Add unstable support for is_animated image flag
According to MSC4230.
2025-01-02 18:44:00 -05:00
Kévin Commaille
6441d823dd Remove unnecessary allow attribute
It seems like it was fixed in clippy.
2025-01-02 18:42:44 -05:00
Kévin Commaille
9e9b59819c chore: Fix links to rich reply fallback section
Since they were remove in Matrix 1.13, the section was removed and the information is now in an info box.
2025-01-02 18:42:32 -05:00
Kévin Commaille
3321286242 events: Do not generate reply fallbacks anymore
According to MSC2781.

The helper methods for the relevant relations have been simplified to
only take the necessary data.
2025-01-02 18:42:26 -05:00
Kévin Commaille
ea0cdc6318 api: Add MatrixVersion::V1_13 2025-01-02 18:41:55 -05:00
Kévin Commaille
cbad1a414a xtask: Allow links to v1.13 of the Matrix spec 2025-01-02 18:41:34 -05:00
Jason Volk
ac37db212a fix lints
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-01 22:20:39 +00:00
Jason Volk
814df8faf2 add capacity() and missing len() to Owned identifier interface
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-01 21:52:10 +00:00
Jason Volk
30a08ff7be various identifiers macro optimizations
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-28 23:43:56 +00:00
Jason Volk
6e4d02b9c0 add errors for feature not implemented or disabled
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-28 23:43:56 +00:00
Jason Volk
54da128bbe refactor owned identifiers using SmallVec 2024-12-28 01:06:09 +00:00
Jason Volk
d3ed3194eb replace constant with function parameter for io-parallelism
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-24 13:52:53 +00:00
Jason Volk
307186ebdc optimize IO for iterative_auth_check and get_power_level_for_sender
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-24 13:52:53 +00:00
Jason Volk
9bdc048cdb various inlines
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-19 14:02:45 +00:00
June 🍓🦴
112ccc24cb
Merge pull request #15 from JadedBlueEyes/stabilize-appservice-edus
appservice-api: Stabilize support for sending ephemeral data to appservices
2024-12-17 21:40:54 -05:00
Jade Ellis
a3cfbf77f0
appservice-api: Stabilize support for sending ephemeral data to appservices
Co-authored-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-12-18 02:24:07 +00:00
June 🍓🦴
3ef82c56ff
Merge pull request #14 from JadedBlueEyes/reserve-headers
Reserve the correct amount of headers
2024-12-17 21:10:31 -05:00
Jade Ellis
ad417daad8
reserve the correct amount of headers 2024-12-17 22:04:17 +00:00
strawberry
a204cb56db
remove stupid skip_serializing_if on push rulesets
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-12-15 15:13:13 -05:00
strawberry
5a826d31a3
remove serde(flatten) in MSC4133 endpoints
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-12-15 03:23:31 -05:00
Kévin Commaille
b1790e05ce push: Allow to add custom data for pushers
Due to a clarification in the spec.
2024-12-15 03:10:09 -05:00
Kévin Commaille
81611b65f8 events: Be a little smarter when removing plain reply fallback
Given that the default algorithm from the spec would also remove the
beginning of a message starting with a blockquote,
let's be more conservative an check that the beginning really looks like
the fallback that was defined in the spec.
2024-12-15 03:07:53 -05:00
Kévin Commaille
f05d0e03a1 api: Disallow #[serde(flatten)] for single-body-fields of requests and responses
`#[ruma_api(body)]` must be used instead.
2024-12-15 03:07:49 -05:00
Kévin Commaille
3ca8adaadf client-api: Add ErrorKind::UserSuspended
According to MSC3823
2024-12-15 03:06:24 -05:00
Kévin Commaille
4a9dfc7b30 client-api: Remove outdated comment
The field is now correctly specified in the spec.
2024-12-15 02:57:17 -05:00
Kévin Commaille
0107229b3c appservice-api: Remove outdated comment
The field is now correctly specified in the spec.
2024-12-15 02:57:14 -05:00
Kévin Commaille
6311fc644e client-api: Remove sentence about optional reason being blank.
If it is optional it makes no sense for it to be blank. This is due to a clarification in the Matrix spec.
2024-12-15 02:57:10 -05:00
Kévin Commaille
9a765f9d2b identifiers: Improve docs of IdZst macro 2024-12-15 02:57:05 -05:00
Kévin Commaille
fb273553b5 identifiers: Allow to set ruma_identifiers_storage cfg setting with env variable 2024-12-15 02:55:58 -05:00
Kévin Commaille
739334ac94 events: Use rename_all rule for CancelCode
The required rename rule exists so remove the TODO and use it.
2024-12-15 02:55:19 -05:00
Kévin Commaille
2a97aa9c4e ruma-client: Fix doc tests with default features 2024-12-15 02:55:16 -05:00
Mathieu Velten
9af36342ff Add a test regarding ser/de of an UserId in a DirectUserIdentifier (#1968)
Add a test to check that a serialized UserId can be deserialized to an OwnedDirectUserIdentifier.

Also fixes Clippy failures.
2024-12-15 02:55:12 -05:00
Kévin Commaille
bc8b704e5b client-api: Add ErrorKind::ThreepidMediumNotSupported
According to MSC4178
2024-12-15 02:54:49 -05:00
strawberry
08f58cd323
alias MSC2409 receive_ephemeral to de.sorunome.msc2409.push_ephemeral
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-12-09 12:56:05 -05:00
Jason Volk
1a550585bf state-res: parallelize fetches within some loops
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-03 23:56:43 +00:00
Jason Volk
9c84a3be3e state-res: fetch event_auth state events in parallel
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-03 23:05:10 +00:00
Jason Volk
c1f5f3f20b optimize PL deserialization
add generalized map_as_vec deserializer

Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-03 13:43:30 +00:00
Jason Volk
771db61ee4 events: slightly rework benches
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-03 13:43:09 +00:00