48 Commits

Author SHA1 Message Date
Kévin Commaille
635480796d common: Add support for private read receipts
According to MSC2285
2022-07-18 11:18:55 +02:00
Kévin Commaille
2f96fa5548 push: Add push rule to ignore room server ACLs
According to MSC3786
2022-07-16 19:09:15 +02:00
Kévin Commaille
eb567dac73 identifiers: Separate RoomId URI methods with and without via 2022-07-08 15:49:14 +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
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
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
402b2764fb common: Move CanonicalJson out of serde mod and behind a Cargo feature 2022-06-23 10:18:26 +02:00
Kévin Commaille
3deae8eac7 identifiers: Add MatrixVersionId::V10
According to MSC3604
2022-06-21 13:38:34 +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
80a8dcf28a events: Stabilize MSC2675 2022-06-20 17:44:18 +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
Kévin Commaille
03f5b38403 events: Add support for knocking in membership_changes 2022-06-14 12:14:52 +02:00
Jonas Platte
a8e7c47bbe
Remove RoomName type 2022-06-03 11:40:33 +02:00
Kévin Commaille
906d576a27
Implement Improved Signalling for 1:1 VoIP
According to MSC2746
2022-05-30 14:09:58 +02:00
Kévin Commaille
67d6df3dd2
Change changelog 2022-05-30 12:04:35 +02:00
Kévin Commaille
b9f66dba6d
identifiers: Re-export custom parse errors 2022-05-29 11:57:35 +02:00
Kévin Commaille
c3d573e943
events: Add support for polls
According to MSC3381
2022-05-25 12:03:45 +02:00
Kévin Commaille
1c90770d93
events: Split SessionDescription between Answer and Offer 2022-05-24 14:40:30 +02:00
Kévin Commaille
baa6dc591e
events: Change BundledAnnotation to a struct 2022-05-24 12:30:27 +00:00
Jonas Platte
0a47a2d915
events: Remove PartialEq impl for SessionDescription 2022-05-23 18:28:34 +02:00
Jonas Platte
b1cb6cd4c0
events: Remove PartialEq impl on NotificationPowerLevels 2022-05-23 18:24:58 +02:00
Jonas Platte
6a2950884d push: Consider push rules to not apply to events sent by the user themselves 2022-05-12 12:17:55 +02:00
Jonas Platte
e1c35b3d7f
Release ruma-common 0.9.2 2022-05-09 12:51:17 +02:00
Jonas Platte
a36da216ec
Release ruma-common 0.9.1 2022-05-06 17:19:57 +02:00
Jonas Platte
4e8d88617d
Release ruma-common 0.9.0 2022-04-28 16:38:08 +02:00
Johannes Becker
6b768dc033
events: Add conversion from RoomPowerLevels to RoomPowerLvelsEventContent 2022-04-21 10:29:56 +00:00
Jonas Platte
3a47403a75 events: Add changelog entry for generic state_key 2022-04-21 11:16:38 +02:00
Johannes Becker
d7a53d8bac
common: Make Restricted::allow public 2022-04-19 15:34:33 +02:00
Kévin Commaille
1e1fa06342 events: Fix plain text reply constructors
Send a formatted_body, according to the spec
2022-04-05 21:13:25 +02:00
Jonas Platte
002d863738
events: Fix default invite power level 2022-04-05 17:43:52 +02:00
Kévin Commaille
d661e3f4de common: Update CHANGELOG 2022-04-05 14:25:50 +02:00
Kévin Commaille
12ee658e96
events: Use an enum for a media's source
Have stricter media types that accept either an encrypted or plain file.

Co-authored-by: Jonas Platte <jplatte@element.io>
2022-03-22 16:42:42 +01:00
Jonas Platte
06344cdc73
Release ruma-common 0.8.0 2022-02-19 14:47:08 +01:00
Jonas Platte
b29755f0c5
Release ruma-common 0.7.0 2022-02-19 01:33:25 +01:00
Jonas Platte
7602570e21
Release ruma-common 0.6.0 2021-08-11 17:24:41 +02:00
Jonas Platte
4312085b4a
Release ruma-common 0.5.4 2021-06-18 20:27:32 +02:00
Jonas Platte
3a46a5837d
Release ruma-common 0.5.3 2021-06-10 15:25:13 +02:00
Jonas Platte
c49eec9867
Release ruma-common 0.5.2 2021-06-01 21:57:37 +02:00
Jonas Platte
13e3b45070
Move ThirdPartyIdentifier(Init) from client-api to common
While it's not currently used in any other crates in this repo,
synapse-admin-api does use it and it seems logical for it to be defined
alongside the other thirdparty types in common.
2021-06-01 21:53:58 +02:00
Jonas Platte
0ad480a163
Release ruma-common 0.5.1 2021-05-16 23:12:23 +02:00
Kévin Commaille
6a2c028cfb events: Change receipt::Receipts struct to a BTreeMap<ReceiptType, UserReceipts> 2021-05-11 10:11:02 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00