Jonas Platte
1224dd3810
events: Add more convenient power level action checks to RoomPowerLevels
2023-04-27 12:20:11 +02:00
Kévin Commaille
4105169577
push: Panic on Regex construction error
2023-04-24 17:00:01 +02:00
Kévin Commaille
ed7c26ff9f
push: Use bytes Regex to fix regex construction
...
Due to a new error detected in the regex crate.
2023-04-24 17:00:01 +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
fea6299935
Fix broken doc comment
...
Thanks clippy!
2023-04-12 19:19:17 +02:00
Jonas Platte
1229fa4461
events: Add FullStateEventContent::redact
2023-04-11 16:16:32 +02:00
Kévin Commaille
2ccc0323f6
push: Add support for event_property_contains push condition
...
According to MSC3966
2023-04-11 16:12:05 +02:00
Kévin Commaille
2e7b67bb23
push: Add support for event_property_is push condition
...
According to MSC3758
2023-04-11 16:12:05 +02:00
Kévin Commaille
82b4257bfe
push: Split push conditions tests
2023-04-11 16:12:05 +02:00
Kévin Commaille
33fa1b48ed
push: Collect a bigger subset of JSON values in FlattenedJson
2023-04-11 16:12:05 +02:00
Kévin Commaille
cdfcdecaf8
push: Move FlattenedJson to its own module
2023-04-11 16:12:05 +02:00
Kévin Commaille
ef374ea6b0
push: Escape dots and backslashes in field name for event_match condition
...
According to MSC3873
2023-04-11 11:18:20 +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
8eea3e0549
push: Enable by default .m.rule.tombstone
push rule
...
As defined in the spec.
2023-03-14 12:01:40 +01:00
Kévin Commaille
27a2c07df9
events: Add constants for the verification requests timeouts
2023-03-13 17:12:49 +01:00
Kévin Commaille
a399a4017a
push: Add convenience methods to check if an action triggers a notification or a sound
2023-03-13 13:54:22 +01:00
Kévin Commaille
b6717bc2ea
push: Add convenience method to check if an action is a highlight tweak
2023-03-13 13:36:56 +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
Kévin Commaille
0596e46045
events: Add method to construct RoomEncryptionEventContent with the recommended defaults
2023-03-10 11:13:37 +01:00
Jonas Platte
25be562036
Update trybuild output
2023-03-10 10:59:52 +01:00
Jonas Platte
4eb5033dd0
events: Add utility functions for InitialStateEvent
2023-03-09 18:58:56 +01:00
Jonas Platte
5aa0f29935
identifiers: Add AsRef<[u8]> impls for ID types
2023-03-07 11:06:34 +01:00
Kévin Commaille
ba296ec466
push: Add method to remove a user-defined push rule from a Ruleset
2023-03-02 11:30:48 +01:00
Kévin Commaille
a78d2a7dcf
push: Add method to update server-default push rules
2023-03-02 11:30:48 +01:00
Kévin Commaille
c44e0b5e5a
push: Fix ordering of docs
2023-03-02 11:30:48 +01:00
Jonas Platte
f9a40e137e
events: Remove reaction bundling
...
It was removed from the MSC.
https://github.com/matrix-org/matrix-spec-proposals/pull/2677
2023-02-28 20:01:04 +01:00
Kévin Commaille
cc47a7268b
events: Updates location event types
...
Even if the MSC hasn't been updated, refactor a bit to match other
extensible events types.
2023-02-27 20:28:38 +01:00
Kévin Commaille
61c23491c6
events: Update types according to changes in MSC3381
2023-02-27 20:28:38 +01:00
Kévin Commaille
fbf99fcc53
events: Update types according to changes in MSC3554
2023-02-27 20:28:38 +01:00
Kévin Commaille
08aa2ca04c
events: Update types according to changes in MSC3245
2023-02-27 20:28:38 +01:00
Kévin Commaille
41be6ac18b
events: Update types according to MSC3927 and changes in MSC3246
2023-02-27 20:28:38 +01:00
Kévin Commaille
60f754322e
events: Update types according to changes in MSC3553
2023-02-27 20:28:38 +01:00
Kévin Commaille
5985bbe803
events: Update types according to changes in MSC3552
2023-02-27 20:28:38 +01:00
Kévin Commaille
2de1cecec6
events: Update types according to changes in MSC3551
2023-02-27 20:28:38 +01:00
Kévin Commaille
8477efb2ef
events: Update types according to changes in MSCs 1767, 3954, 3955 and 3956
2023-02-27 20:28:38 +01:00
Kévin Commaille
e490c8893d
events: Remove the serde alias for the blurhash field in events
...
Some clients send both the stable and unstable version so deserialization fails.
2023-02-27 17:04:39 +01:00
Kévin Commaille
f29bbebf08
events: Make the json_object macro syntax easier to read
2023-02-23 19:31:08 +01:00
Kévin Commaille
32901da35f
events: Reorganize tests
...
Move tests to the proper files, streamline test names and remove
duplicates.
2023-02-23 19:31:08 +01:00
Jonas Platte
54d27f1083
events: Implement {From,Into}Iterator for ReceiptEventContent
2023-02-22 17:32:40 +01:00
Jonas Platte
53f9cf52ed
events: Implement {From,Into}Iterator for DirectEventContent
2023-02-22 17:32:39 +01:00
Jonas Platte
c2d8b4f4b9
events: Update changelog
2023-02-22 14:41:02 +01:00
Jonas Platte
11d5020565
events: Don't require threads to contain m.in_reply_to
2023-02-22 14:38:23 +01:00
Kévin Commaille
f17f288a3f
Release ruma-common 0.11.3
2023-02-15 12:44:42 +01:00
Kévin Commaille
a859567487
docs: Migrate spec links to v1.6
2023-02-15 09:59:05 +01:00