336 Commits

Author SHA1 Message Date
Kévin Commaille
1701d9a803 events: Make creator field of RoomCreateEventContent optional and RedactedRoomreateEventContent a typedef
According to MSC2175
2023-08-14 15:33:39 +02:00
Kévin Commaille
7a5d9b6e8b events: Add support for redacts key into content of RoomRedactionEvent
According to MSC2174
2023-08-11 15:30:13 +02:00
Kévin Commaille
cf70f74fb7 events: Make sure matches with RoomVersionId default to behavior of latest room version
Avoids forgetting to update the match if nothing changed since the last version.
2023-08-10 13:26:52 +02:00
Kévin Commaille
9bf3e03dd3 events: Add m.relates_to to poll start events 2023-07-27 16:04:58 +02:00
Kévin Commaille
d53362c689 events: Add unstable poll events
Using the unstable format defined in MSC3381
2023-07-27 16:04:58 +02:00
Kévin Commaille
c0b8cd4d46 events: Make polls events use the stable prefixes 2023-07-27 16:04:58 +02:00
Kévin Commaille
df11c6d46a events: Provide type for historical m.message content block instead of serde helper 2023-07-27 16:04:58 +02:00
Jonas Platte
3dac70ead9
Remove most unreachable visibility modifiers 2023-07-19 14:32:14 +02:00
Jonas Platte
20d38e1622
events: Add From<MessageType> for RoomMessageEventContentWithoutRelation 2023-07-12 11:58:22 +02:00
Jonas Platte
9cf1257142
events: Add RoomMessageEventContentWithoutRelation::new 2023-07-12 11:40:21 +02:00
Kévin Commaille
f8ac66ca25 events: Add support for intentional mentions
According to MSC3952
2023-07-10 13:12:17 +02:00
Kévin Commaille
07bc06038f events: Keep data of unknown relations 2023-07-06 17:05:25 +02:00
Benjamin Bouvier
2c8ece6bf2
events: Parse TagInfo::order as a f64 or a stringified f64 2023-07-06 14:34:43 +02:00
Jonas Platte
775484c408
events: Add emote convenience constructors
… the same ones we have for text and notice msgtypes.
2023-07-05 10:36:41 +02:00
Kévin Commaille
c8e61a2ee7 events: Implement Deserialize for encrypted::Relation 2023-07-04 15:31:05 +02:00
Kévin Commaille
c77f08024a chore: Fix new clippy lints 2023-07-04 11:55:25 +02:00
Kévin Commaille
2b68cb6eec events: Add AssetType::Pin 2023-06-23 12:41:37 +02:00
Kévin Commaille
d0f11f0075 events: Reintroduce MSC3488 fallback behavior in LocationMessageEventContent 2023-06-23 12:41:37 +02:00
Kévin Commaille
e017e65277 events: Improve compatibility of generated and stripped plain reply fallback 2023-06-23 12:32:24 +02:00
Kévin Commaille
9b694cdfa8 events: Add methods to compute poll results 2023-06-23 10:36:23 +02:00
Kévin Commaille
09bc835936 events: Fix outdated docs 2023-06-23 09:40:23 +02:00
Jonas Platte
c5782ab8aa
Use new owned ID macros throught the codebase 2023-06-20 11:47:50 +02:00
Kévin Commaille
3cbc1c5038 events: Re-enable clippy::needless_update 2023-06-16 09:16:09 +02:00
Kévin Commaille
af437bc642 events: Re-enable clippy::needless_borrow lint
It seems false positives have been fixed.
2023-06-16 09:16:09 +02:00
Jonas Platte
ba16ce40cc
Make html sanitization types pub(crate)
Makes it more obvious when reading that they're not part of the public API.
2023-06-14 12:20:45 +02:00
Jonas Platte
fe2d62a5ee
Remove unused pub visibility 2023-06-14 12:20:15 +02:00
Jonas Platte
beded100ac
events: Fix documentation for a few functions 2023-06-13 17:25:11 +02:00
Jonas Platte
b183677ef5
events: Add builder-style methods to media event content structs 2023-06-13 17:15:10 +02:00
Jonas Platte
c1fa8d9406
events: Streamline constructors of media event content structs 2023-06-13 17:15:09 +02:00
Jonas Platte
ba5bf8cfce
Replace assert_matches by assert_matches2 2023-06-08 11:37:11 +02:00
Kévin Commaille
07ea09548f events: Stabilize VoIP signalling improvements 2023-06-06 10:44:48 +02:00
Kévin Commaille
3f28f2a6f1 events: Use a string for SessionDescription's type
A clarification in MSC2746 / Matrix 1.7 explains that the `type` field
should not be validated but passed as-is to the WebRTC API.
It
    also avoids an unnecessary conversion between the WebRTC API
and the Ruma type.
2023-05-26 11:45:50 +02:00
Kévin Commaille
60ed2c7b9a events: Add missing version field to CallNegotiateEventContent 2023-05-26 10:55:37 +02:00
Kévin Commaille
2d697fcc95 events: Stabilize annotations and reactions 2023-05-26 09:26:30 +02:00
Kévin Commaille
5f20a3292c docs: Fix links for v1.7 2023-05-25 19:28:33 +02:00
Kévin Commaille
6df78e8aee events: Move CalCapabilities behind feature unstable-msc2747 2023-05-24 17:53:32 +02:00
Kévin Commaille
6a77b4c9e4 push: Remove the DontNotify and Coalesce variants of push::Action
According to MSC3987.
2023-05-04 13:44:54 +02:00
Kévin Commaille
b50037affc events: Implement sanitize on MessageType 2023-04-27 19:19:37 +02:00
Jonas Platte
1224dd3810
events: Add more convenient power level action checks to RoomPowerLevels 2023-04-27 12:20:11 +02:00
Jonas Platte
4c85fe9c78
Replace compat feature with more fine-grained compat-* features
… and document them.
2023-04-20 14:00:27 +02:00
Jonas Platte
89e398fd06
events: Add back relations accessors for message-like event enums 2023-04-18 11:33:54 +02:00
Jonas Platte
0bbad284f3
events: Add RoomRedactionUnsigned 2023-04-18 11:16:56 +02:00
Jonas Platte
1229fa4461
events: Add FullStateEventContent::redact 2023-04-11 16:16:32 +02:00
Jonas Platte
e61e0ccf6b
Implement MSC3925
… without a feature flag because it is a breaking change, so the feature
would have to be non-additive, which is a no-go.
Limited support for the previous replacement format is kept.
2023-03-15 14:49:51 +01:00
Jonas Platte
19d44489c3
events: Split bundled relations into two types
One for message-like events, one for state events.
2023-03-15 14:49:49 +01:00
Kévin Commaille
27a2c07df9 events: Add constants for the verification requests timeouts 2023-03-13 17:12:49 +01:00
Jonas Platte
03a58bcd88
Fix return type of InitialStateEvent::to_raw_any 2023-03-10 12:51:58 +01:00
Jonas Platte
1af28486cc events: Implement Default for EmptyStateKey 2023-03-10 12:33:55 +01:00
Jonas Platte
4049969d8c events: Implement Default for InitialStateEvent
… where C has an empty state key and implements Default itself.
2023-03-10 12:33:55 +01:00
Kévin Commaille
d56386a636 events: Add link to definition of m.room.encryption recommended defaults 2023-03-10 11:41:53 +01:00