Kévin Commaille
97b212795a
events: Create EventContentFromType
...
Implement it for:
- event contents that implement Deserialize
- event contents with event types with a suffix
- custom event contents
2023-01-10 11:37:31 +01:00
Kévin Commaille
12e4aa47b6
push: Allow to deserialize Action with custom value
2023-01-07 14:36:25 +01:00
Kévin Commaille
97fd0c3419
push: Allow to deserialize PushCondition with unknown kind
2023-01-07 14:36:25 +01:00
Kévin Commaille
ca78825e94
events: rename RoomEventType to TimelineEventType
2023-01-03 10:36:13 +01:00
Kévin Commaille
cd74cdcc0e
events: Generate PossiblyRedacted type for original state events
...
Fix deserialization of redacted prev_content
Can be overriden with the `custom_possibly_redacted` attribute
Co-authored-by: Jonas Platte <jplatte@element.io>
2023-01-03 10:28:40 +01:00
Jonas Platte
ff8ab6b085
Replace ruma_common::serde::urlencoded with serde_html_form
2023-01-02 17:47:33 +01:00
Kévin Commaille
9d8c9c477f
events: Move Unsigned type to new OriginalStateEventContent trait
...
Only original events require it.
2022-12-23 17:55:03 +01:00
Kévin Commaille
baaf73adbc
events: Add accessors for state events' original or redacted content
2022-12-19 13:13:12 +00:00
Jonas Platte
ad3c27d927
events: Make redacted_because non-optional in RedactedUnsigned
2022-12-15 12:47:27 +01:00
Kévin Commaille
61a9d65b71
events: Rename events::relation::Relations to BundledRelations
2022-11-25 22:33:37 +01:00
Kévin Commaille
93bc8a60be
events: Use Reference instead of events: 🔑 :verification::Relation
2022-11-25 22:33:37 +01:00
Kévin Commaille
e63896b916
events: Use Annotation instead of events::reaction::Relation
2022-11-25 22:33:37 +01:00
Kévin Commaille
6648954bd2
events: Move common relation structs under events::room::encrypted to events::relation
2022-11-25 22:33:37 +01:00
Kévin Commaille
aeaa4af776
events: Move relations under events::room::message to events::relation
2022-11-25 22:33:37 +01:00
Kévin Commaille
74161014be
events: Add support for formatted body on KeyVerificationRequestEventContent
2022-11-25 20:19:52 +01:00
Kévin Commaille
583ee2cdfa
events: Add support for bundled reference relations
...
According to MSC3267 / Matrix 1.5
2022-11-25 20:11:33 +01:00
Kévin Commaille
dc18b12506
events: Fix deserialization without relation
2022-11-25 18:40:19 +01:00
Kévin Commaille
0feb39298a
api: Add support for Matrix v1.5
2022-11-25 14:13:56 +01:00
Kévin Commaille
e8bec10c6d
push: Make SimplePushRule generic over the type of the rule_id
2022-11-12 10:59:52 +01:00
Kévin Commaille
eecae05721
events: Change IgnoredUserListEventContent to use a map of empty structs
2022-11-11 21:48:14 +01:00
Jonas Platte
a8ba82d585
api: Make EndpointError construction infallible
...
Simplifies error matching and preserves more information for
non-spec-compliant server errors.
2022-11-10 13:10:57 +01:00
Kévin Commaille
05356d7d4e
push: Add method to change the actions of push rules in a Ruleset
2022-11-09 14:45:12 +01:00
Kévin Commaille
96642e3a1b
push: Add method to change the enabled state of push rules in a Ruleset
2022-11-09 14:45:12 +01:00
Kévin Commaille
f87714d73f
push: Add method to insert a user push rule in a Ruleset
2022-11-09 14:45:12 +01:00
Kévin Commaille
a50f5f5cb2
push: Add method to get a push rule in a Ruleset
2022-11-09 14:45:12 +01:00
Kévin Commaille
b2d52680af
push: Remove Ruleset::add()
...
In practice, rule insertion is more complex than
adding rules at the end of the ruleset. It can be
easily replaced by using the methods of IndexSet.
2022-11-09 14:45:12 +01:00
Kévin Commaille
bf7c504446
push: Add enums for predefined push rule IDs
2022-11-09 14:45:12 +01:00
Kévin Commaille
2bd5c131f4
client-api: Make PusherKind contain the pusher data
...
Since it depends on the kind
2022-11-07 10:21:48 +01:00
Kévin Commaille
5158dbf2eb
events: Don't include sensitive data in Debug-format of to-device events
2022-11-07 09:46:25 +01:00
Xiretza
69c807bdc1
events: Escape plain bodies in replies
...
Replies generate an HTML body even if the reply itself only consists of
plain text. In order to convert the plain text to HTML, it has to be
escaped, which did not happen previously.
2022-11-03 13:16:01 +01:00
gnieto
dcff5a0737
events: Make name on SecretStorageKeyEventContent optional
...
The spec has the `name` field marked as optional.
See: https://spec.matrix.org/v1.4/client-server-api/#key-storage
2022-10-22 08:29:13 +00:00
Jonas Platte
3c3c6f388f
Merge branch 'ruma-0.7'
2022-10-18 09:14:16 +02:00
Jonas Platte
67b2ec7d34
Release ruma-common 0.10.5
2022-10-18 09:09:59 +02:00
Jonas Platte
6ec7fc09ea
Merge branch 'ruma-0.7'
2022-10-17 18:05:42 +02:00
Jonas Platte
83d60d1fab
Release ruma-common 0.10.4
2022-10-17 17:27:27 +02:00
Kévin Commaille
bd6ba8b9ee
identifiers: Fix MatrixToUri parsing for non-url-encoded room aliases
2022-10-17 17:20:40 +02:00
Kévin Commaille
c2c4555133
identifiers: Fix MatrixToUri parsing for non-url-encoded room aliases
2022-10-10 23:03:58 +02:00
Kévin Commaille
d3bd86a23e
events: Add support for read receipts for threads
...
According to MSC3771
2022-10-10 20:49:04 +02:00
Kévin Commaille
739c35aaca
api: Allow to use any HeaderName with the header keyword of ruma_api
2022-10-10 19:09:39 +02:00
Kévin Commaille
4e2dac30be
events: Stabilize support for event replacements
2022-10-10 18:23:03 +02:00
Kévin Commaille
994136b9b8
events: Add thread-aware methods to RoomMessageEventContent
2022-10-10 17:55:08 +02:00
Kévin Commaille
003f0abebf
events: Stabilize current support for threads
2022-10-10 17:55:08 +02:00
Kévin Commaille
d55573a555
api: Remove AuthScheme::QueryOnlyAccessToken
...
It is no longer used by the Appservice API.
2022-10-02 15:08:31 +02:00
Kévin Commaille
c141b7deb5
events: Stabilize support for private read receipts
2022-10-01 11:21:18 +02:00
Kévin Commaille
f068c3fb5a
directory: Stabilize room_types and room_type for /publicRooms
2022-10-01 11:12:13 +02:00
Kévin Commaille
5b25f2f223
push-rule: Stabilize default room server ACL push rule
2022-09-30 19:42:06 +02:00
Kévin Commaille
ef2afd9f6e
api: Add support for Matrix v1.4
2022-09-30 17:18:08 +02:00
Jonas Platte
ac707e30f0
events: Move ignored_users serde code into ignored_user_list module
...
… and optimize it.
2022-09-24 11:34:55 +02:00
Jonas Platte
028eb8a457
events: Remove deprecated API
2022-09-22 11:50:22 +02:00
Jonas Platte
6fa928983c
Fix changelog
2022-09-16 12:15:08 +02:00