1537 Commits

Author SHA1 Message Date
Kévin Commaille
bda17c3662 events: Avoid unnecessary allocations during conversion 2022-07-08 13:34:19 +02:00
Kévin Commaille
2dacaf2ea0 identifiers: Allow via on RoomId::matrix_to_event_uri() 2022-06-29 14:54:37 +02:00
Kévin Commaille
4883a3154c identifiers: Make matrix URI ctors generic over owned parameters
Avoid unnecessary cloning
2022-06-29 14:54:37 +02:00
Kévin Commaille
cbcf9b0a7b identifiers: Implement From<Owned*Id> for MatrixId 2022-06-29 14:54:37 +02:00
Jonas Platte
803fd38f99
server-util: Fix clippy lints 2022-06-29 14:22:13 +02:00
Jan Christian Grünhage
8b21519d25
Add ruma-server-util crate with X-Matrix auth header parsing 2022-06-29 13:54:28 +02:00
Jonas Platte
6b04b6c567
signatures: Silence unreachable lint with unstable-exhaustive-patterns 2022-06-29 10:50:25 +02:00
Jonas Platte
08002e2640
Fix unstable-msc2870 2022-06-29 10:31:25 +02:00
Jonas Platte
2e8b3e7e79
Fix clippy lints 2022-06-29 10:15:39 +02:00
Kévin Commaille
df821ab753 state-res: Enforce integer PLs for room v10 on custom types
According to MSC3667
2022-06-27 13:19:25 +02:00
Kévin Commaille
da462adab1 state-res: Stabilize deserializing stringified integers for PLs
Removes the `compat` feature.
2022-06-27 13:19:25 +02:00
Kévin Commaille
ca3ca023a4 state-res: Remove unnecessary serde attributes 2022-06-27 13:19:25 +02:00
Kévin Commaille
b38efe75c3 state-res: Fix default invite power level
According to matrix-org/matrix-spec#1021
2022-06-27 13:19:25 +02:00
Kévin Commaille
ef072654da state-res: Add knock_restricted join rule
According to MSC3787
2022-06-25 18:22:32 +02:00
Kévin Commaille
e683d28afe state-res: Enforce integer power levels for room v10
According to MSC3667
2022-06-25 18:22:32 +02:00
Kévin Commaille
2fcb7315b4 state-res: Add RoomVersion::V10 2022-06-25 18:22:32 +02:00
Kévin Commaille
324c8b09e0
state-res: Add m.federate to the authorization rules 2022-06-25 18:11:57 +02:00
Kévin Commaille
cac7e09429
events: Add methods to sanitize messages
Can also remove rich reply fallbacks

Behind the `unstable-sanitize` feature.

Co-authored-by: Jonas Platte <jplatte@matrix.org>
2022-06-24 19:13:46 +02:00
Kévin Commaille
506a7bdf2e push: Fix regex for word boundaries 2022-06-24 17:32:34 +02:00
Kévin Commaille
1e220a05bf push: Fix word matching without wildcards
Don't match non-ASCII alphanumeric characters
2022-06-24 17:32:34 +02:00
Kévin Commaille
d192184b3c
push: Allow wildcards when matching words 2022-06-23 15:57:54 +02:00
Jonas Platte
33e1a20c4b
signatures: Remove unused compat feature 2022-06-23 12:43:53 +02:00
Jonas Platte
f9f2c89615
ruma: Re-export canonical_json module and related types 2022-06-23 11:47:28 +02:00
Jonas Platte
3808b87981
ruma: Clean up serde re-exports 2022-06-23 11:47:15 +02:00
Jonas Platte
7c2ea3f33a common: Improve comments / docs 2022-06-23 10:18:26 +02:00
Jonas Platte
a4a95e74fa Address review feedback and finish canonical JSON move 2022-06-23 10:18:26 +02:00
Jonas Platte
940450b953 [WIP] Move redaction from ruma-signatures to ruma-common 2022-06-23 10:18:26 +02:00
Jonas Platte
402b2764fb common: Move CanonicalJson out of serde mod and behind a Cargo feature 2022-06-23 10:18:26 +02:00
Jonas Platte
ad8ed13b74
common: Simplify reply construction 2022-06-22 17:08:01 +02:00
Kévin Commaille
8fc6a55877 events: Add reply fallback to emotes 2022-06-22 16:57:59 +02:00
Kévin Commaille
9b2117cbf6 events: Don't add reply fallback in thread fallback 2022-06-22 16:57:59 +02:00
Marcel Hellwig
92f862e279
macros: Generate certain structs only with client or server feature enabled
If neither the client, nor the server feature is enabled the fields are
unused and therefore trigger the dead_code lint.
2022-06-22 14:15:37 +02:00
Jonas Platte
195091c051
Update clippy issue reference 2022-06-21 18:03:46 +02:00
Jonas Platte
f5c734a7b5
serde: Remove allow attribute that's no longer needed 2022-06-21 18:03:34 +02:00
Jonas Platte
61282642c0
client-api: Rewrite small test to remove test-only PartialEq impl 2022-06-21 18:02:16 +02:00
Kévin Commaille
9a8d7bf475 api: Get the default room version for a Matrix version 2022-06-21 15:51:55 +02:00
Kévin Commaille
3deae8eac7 identifiers: Add MatrixVersionId::V10
According to MSC3604
2022-06-21 13:38:34 +02:00
Kévin Commaille
478375f1f7 events: Use rename_all for JoinRule variants 2022-06-20 19:02:32 +02:00
Kévin Commaille
28d0d90ab5 client-api: Add knock_restricted join rule
According to MSC3787
2022-06-20 19:02:32 +02:00
Kévin Commaille
33a47427c1 events: Add knock_restricted join rule
According to MSC3787
2022-06-20 19:02:32 +02:00
Kévin Commaille
8081878934 events: Remove m.room.message.feedback
According to MSC3582
2022-06-20 18:34:06 +02:00
Kévin Commaille
d729c0f4cd events: Stabilize deserializing stringified integers for PLs 2022-06-20 18:01:10 +02:00
Kévin Commaille
fdb45296c5 client-api: Stabilize MSC3316 2022-06-20 17:57:12 +02:00
Kévin Commaille
80a8dcf28a events: Stabilize MSC2675 2022-06-20 17:44:18 +02:00
Kévin Commaille
a077c4ea77 client-api: Stabilize MSC2675 2022-06-20 17:44:18 +02:00
Kévin Commaille
0d71ce17da client-api: Stabilize MSC2918 2022-06-20 17:16:12 +02:00
Kévin Commaille
05a28c8097 client-api: Remove pre-v1.3 note in docs 2022-06-20 16:56:57 +02:00
Kévin Commaille
6bee869b66 events: Stabilize MSC3700 2022-06-20 16:43:04 +02:00
Kévin Commaille
a940de9e41
api: Add MatrixVersion::V1_3 2022-06-20 14:10:09 +00:00
Jonas Platte
fa4ad103f4
client-api: Add missing serde attributes 2022-06-17 12:03:18 +02:00