288 Commits

Author SHA1 Message Date
Jonas Platte
2a6d31a023
Upgrade pulldown-cmark from 0.9 to 0.10 2024-04-28 22:50:39 +02:00
Kévin Commaille
a28d1428e0 events: Add unstable support for muting in VoIP calls
According to MSC3291
2024-04-27 16:11:10 +02:00
Benjamin Bouvier
ccc0a64ba3
events: allow deserialize a m.tag's order as an integer (#1767)
Some servers use an integer to represent e.g. `1` for the order, instead of the double representation (that would be `1.` or `1.0)`. This makes it possible to parse such values as integers too, since they're technically not double. Implementing `visit_u64` and `visit_i64` covers all the smaller sizes too, so I've implemented only that here.
2024-04-18 09:15:27 +00:00
Kévin Commaille
1e185ddb9d Create m.lowercase renaming rule 2024-04-07 15:46:24 +02:00
Kévin Commaille
2313217470 events: Add support for multi-stream VoIP
According to MSC3077 / Matrix 1.10
2024-04-07 15:46:24 +02:00
Jonas Platte
4a02b97aa3
Update website URL 2024-04-04 13:20:58 +02:00
Kévin Commaille
0e7c91d789 docs: Point links to v1.10 of the spec 2024-03-22 21:28:39 +01:00
Kévin Commaille
6c4d1c0fd7 events: Add methods to get required power level for given actions 2024-03-18 21:57:13 +01:00
Jonas Platte
a80caa4c21 events: Remove recently-introduced builder-style methods
It's unclear whether they are that important, and whether their argument
types make sense as-is.
2024-03-11 20:51:54 +01:00
Jonas Platte
0d72acd5e9 events: Improve media event content formatted field docs 2024-03-11 20:51:54 +01:00
Jonas Platte
65d0880dc9 Fix a typo 2024-03-11 20:51:54 +01:00
Kévin Commaille
22e89bde2b events: Make some fields of Candidate optional
For compatiblity with the WebRTC spec.

Notably the last Candidate should only contain the `candidate` field
with an empty string.
2024-03-08 15:12:02 +01:00
Kévin Commaille
6c7fbb5e88 events: Disallow invite->knock membership change 2024-02-28 10:34:52 +01:00
SpiritCroc
631911a1de
events: Add filename and formatted fields to media messages
For MSC2530 media captions
2024-02-27 11:40:56 +01:00
Matthias Ahouansou
1a1c61ee1e events: change type of state_key field of HierarchySpaceChildEvent to OwnedRoomId 2024-02-24 20:30:44 +01:00
Matthias Ahouansou
c00085b520 events: Implement From<JoinRule> for SpaceRoomJoinRule 2024-02-14 14:27:21 +01:00
Stefan Ceriu
68c9bb0930
Add support for MSC2867 - Manually marking rooms as unread 2024-01-26 23:28:11 +00:00
Richard van der Hoff
9d81576af7
events: Correct properties of SecretStorageV1AesHmacSha2Properties
The `key` and `iv` properties of this type are, and have always been, optional according to the spec.
2024-01-18 13:54:39 +00:00
Kévin Commaille
a7e1d7fa49 events: Split method to get power level to redact between own and others events 2024-01-11 16:46:36 +01:00
Kévin Commaille
7c49b84e6d events: Add convenience method to check if a user can changed another user's power level 2024-01-02 14:33:09 +01:00
Kévin Commaille
06ac62213c events: Add convenience methods to check if a user can unban users 2024-01-02 14:33:09 +01:00
Kévin Commaille
9d9827c165 events: Add convenience methods about actions to other users according to power levels
Some of these actions are limited by the power level of the other user.
2024-01-02 14:33:09 +01:00
Kévin Commaille
df1a63909a events: Implement From<RoomPowerLevels> for PushConditionPowerLevelsCtx 2023-12-03 13:03:06 +01:00
Timo
8fc12b0324
events: Add CallNotify event as described by MSC4075
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 15:49:36 +01:00
Jonas Platte
740f357e97
events: Don't fail event content parsing on invalid relation 2023-11-16 14:12:55 +01:00
Kévin Commaille
e409d22ea0 Fix fallback text field name for extensible events in RoomMessageEventContentWithoutRelation::make_reply_to_raw() 2023-11-14 19:53:37 +01:00
Jonas Platte
e8bc589e52
Transition to type privacy lints 2023-11-09 09:50:04 +01:00
Jonas Platte
37c93d57e5
events: Change rich_reply.md to not require specific symbols to be in scope
… for intra-doc links.
2023-11-08 17:49:00 +01:00
Timo K
6a2bd20ceb allow clippy::exhaustive_structs in MembershipInit
Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-20 17:16:48 +02:00
Jonas Platte
624058ced2
events: Clean up derives and other attributes for new types 2023-10-19 18:00:09 +02:00
Jonas Platte
86882d04de
Add missing newline 2023-10-19 17:58:19 +02:00
Jonas Platte
b2f977303f
events: Remove created_ts from call::member::MembershipInit 2023-10-19 17:52:21 +02:00
Timo
7567fd63b5
events: Add CallMemberEvent
Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-19 17:46:42 +02:00
Jonas Platte
f0f63086d5
events: Add html_favicon_url and html_logo_url for docs 2023-10-12 15:44:14 +02:00
Jonas Platte
fd8e8398ff
events: Add Thread::without_fallback
There was no constructor that initializes the minimal set of required
fields previously.
2023-10-12 14:57:05 +02:00
Jonas Platte
2708baeed8
events: Make docs for Thread constructors a bit more comprehensible 2023-10-12 14:53:23 +02:00
Kévin Commaille
9c385a707f events: Improve compatibility of unstable voice messages
Use the same parameters as Element clients.
2023-10-11 15:42:32 +02:00
Alfonso Grillo
530d0afdc8
events: Add unstable voice message types initializers 2023-10-11 08:28:00 +00:00
Jonas Platte
e7ed90ad0f
events: Add RoomMessageEventContentWithoutRelation::add_mentions 2023-10-10 09:54:11 +02:00
Jonas Platte
440a563355
event: Add reply-making methods to RoomMessageEventWithoutRelation 2023-10-10 09:54:11 +02:00
Jonas Platte
533beb600f
events: Add convenience c'tors to RoomMessageEventContentWithoutRelation 2023-10-09 16:02:07 +02:00
Jonas Platte
0f023c5222
events: Move RoomMessageEventContentWithoutRelation into separate module 2023-10-09 16:00:28 +02:00
Jonas Platte
25d0b3ce59
events: Move message relation types into separate module 2023-10-09 15:59:49 +02:00
Jonas Platte
cf59d6ecb1
events: Re-group imports, re-exports in room::message 2023-10-09 15:55:08 +02:00
Jonas Platte
9b1f7363a0
events: Move replacement body text generation to MessageType
… from RoomMessageEventContent.
2023-10-09 15:26:27 +02:00
Jonas Platte
9b94117bf2
events: Move reply fallback generation to MessageType
… from RoomMessageEventContent.
2023-10-09 15:12:52 +02:00
Jonas Platte
5c570b1604
events: Change AddMentions::Yes to only mention the original sender 2023-10-09 14:44:35 +02:00
Jonas Platte
935ac70e28
events: Add missing track_caller attribute
Without this one, the `#[track_caller]` in `make_reply_to` and
`make_reply_to_raw` were pointless.
2023-10-09 13:57:31 +02:00
Michael Hollister
7b898bf376
events: Added shared_history flag to room key events
Signed-off-by: Michael Hollister <michael@futo.org>
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2023-10-06 09:37:29 +02:00
Kévin Commaille
cf4a5d263f events: Add support for custom SecretStorageEncryptionAlgorithm 2023-10-05 10:48:29 +02:00