Kévin Commaille
dc591647f8
events: Remove StateUnsignedFromParts
...
Replace it with a bound on DeserializeOwned
2023-01-10 11:37:31 +01:00
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
9b239663fb
federation-api: Add support for partial state in send_join
...
According to MSC3706
2023-01-10 11:11:45 +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
Benjamin Kampmann
9460702b00
feat: add support for unstable-msc3931/3932 style push conditions parsing
2023-01-07 14:36:25 +01:00
Kévin Commaille
89e06adecf
client-api: Use ToDeviceEventType in send_event_to_device
2023-01-04 15:58:34 +01:00
Kévin Commaille
6b31f66afc
client-api: Use RoomAccountDataEventType in get_room_account_data
2023-01-04 15:58:34 +01:00
Kévin Commaille
423c03f5d2
client-api: Use GlobalAccountDataEventType in get_global_account_data
2023-01-04 15:58:34 +01:00
Kévin Commaille
4d40623ae4
federation-api: Remove mentions of keyId in the keys query endpoints
...
According to MSC3938
2023-01-03 12:41:33 +01:00
Jonas Platte
78ef5270ba
Upgrade dependencies
2023-01-03 11:28:47 +01:00
Kévin Commaille
b5b74f948e
federation-api: Add support to get an event by timestamp
...
According to MSC3030
2023-01-03 11:24:47 +01:00
Kévin Commaille
74c6e38a6b
client-api: Move Direction to ruma-common::api
2023-01-03 11:24:47 +01:00
Kévin Commaille
d0b2ed3609
client-api: Add support to get an event by timestamp
...
According to MSC3030
2023-01-03 11:24:47 +01:00
Kévin Commaille
2934325486
events: Add type accessors to Any{Sync}TimelineEvent
2023-01-03 10:36:13 +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
Matthew Hodgson
0578e7af50
common: Explicitly enable std feature of indexmap
...
Otherwise, it fails to build with -Z build-std, see
https://github.com/cuviper/autocfg/issues/34
2023-01-03 10:26:26 +01:00
Jonas Platte
022a0c0475
Remove unused dependencies
2023-01-02 18:30:01 +01:00
Jonas Platte
ff8ab6b085
Replace ruma_common::serde::urlencoded with serde_html_form
2023-01-02 17:47:33 +01:00
Matthew Hodgson
8a7ef60c2c
client-api: Derive PartialEq on ExtensionsConfig
...
… to support sticky extensions.
2022-12-29 00:01:12 +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
a0cc916742
events: Fix space state events optional booleans ser/de
2022-12-21 17:33:18 +01:00
Kévin Commaille
2a37e4d109
events: Remove Serialize implementation of unsigned types
2022-12-21 17:03:35 +01:00
Jonas Platte
67d0f3cc04
Temporarily add back Serialize implementations for non-DAG events
...
… since they are being used by Conduit.
2022-12-21 13:34:05 +01:00
Kévin Commaille
e6c995ef1a
events: Implement membership_change on [Redacted]RoomMemberEventContent
2022-12-21 11:08:16 +01:00
Flix
cf68a4676d
events: Make deserialize_relation public
2022-12-20 16:03:01 +01:00
Jonas Platte
8187556686
Add back test for slightly malformed base64 decoding
2022-12-20 15:34:50 +01:00
Jonas Platte
536341ca7e
Upgrade base64 to 0.20
2022-12-20 15:34:50 +01:00
Kévin Commaille
e4678284ca
events: Add accessor for AnyFullStateEventContent's event type
2022-12-20 10:46:34 +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
284b797e05
Add optional redacted_because insertion to redaction
2022-12-19 12:52:15 +01:00
Jonas Platte
4f821d39ce
Export UnsignedRoomRedactionEvent from events module
2022-12-19 10:52:29 +01:00
Jonas Platte
ba9634f5bf
Update redact to take ownership of the event to be redacted
2022-12-19 10:42:27 +01:00
Kévin Commaille
fc0b29068f
events: Better fix for typo in docs
2022-12-17 16:37:36 +01:00
Kévin Commaille
e541ce042c
events: Fix typo in docs
2022-12-17 12:03:17 +01:00
Jonas Platte
1c9e0e7718
Allow room_types in directory::Filter to be null with the compat feature
2022-12-16 09:56:18 +01:00
Jonas Platte
5ff113a286
events: Remove unnecessary Box around Raw
2022-12-15 16:46:12 +01:00
Jonas Platte
d20f42617c
events: Box optional bundled relations
...
These fields are much more commonly None than Some(_).
2022-12-15 16:46:12 +01:00
Jonas Platte
190205cfb1
events: Remove Option around BundledRelations
...
… because the type has its own empty state (all fields being None).
2022-12-15 16:46:12 +01:00
Jonas Platte
2aef89cf24
events: Add missing serde attributes to BundledRelations fields
2022-12-15 16:46:12 +01:00
Jonas Platte
2b69afeba7
events: Create new type for redaction event inside redacted_because
...
This new types will deserialize fine regardless of whether the redaction
event is itself redacted or not.
2022-12-15 15:06:04 +01:00
Jonas Platte
ad3c27d927
events: Make redacted_because non-optional in RedactedUnsigned
2022-12-15 12:47:27 +01:00
Jonas Platte
67cc8e9e9c
Box rarely-used variants to reduce enum stack size
2022-12-15 11:46:30 +01:00
Jonas Platte
a22033413d
events: Fix serialization of custom restricted join allow rules
2022-12-15 11:19:16 +01:00
Jonas Platte
cdabe8e52d
events: Remove Serialize impls for all event types except ToDeviceEvent
2022-12-15 10:41:30 +01:00
Kévin Commaille
80733a8cee
events: Fix matching of rejected and revoked invitation
2022-12-14 16:21:38 +01:00
Kévin Commaille
687a534b38
events: Add MembershipChange::InvitationAccepted
2022-12-14 16:21:38 +01:00
Kévin Commaille
803fdc52f7
client-api: Clarify that get_context always returns 'event' even if limit is zero
2022-12-14 13:08:34 +01:00
Jonas Platte
675e6f43cd
events: Remove the Redact trait
...
It has not proven to be useful, being used by no downstream project.
2022-12-14 12:49:15 +01:00