4814 Commits

Author SHA1 Message Date
Jonas Platte
4ef30d5652
Update how_to_release.md 2023-01-31 17:22:55 +01:00
Benjamin Kampmann
00045e559f
client-api: Upgrade to Sliding Sync JSON Layout 0.99
… and implement typing and receipt extensions.
2023-01-31 12:48:47 +00:00
Jonas Platte
e37d064306
macros: Update expected trybuild test output 2023-01-30 16:34:26 +01:00
Jonas Platte
31671da257
events: Simplify membership_change match 2023-01-26 11:26:37 +01:00
Jonas Platte
bf4520a2a9
events: Restrict what counts as MembershipChange::ProfileChanged 2023-01-26 11:25:09 +01:00
Jonas Platte
69337d1f4e
events: Add custom PossiblyRedactedRoomTombstoneEventContent
The auto-generated type would look different based on whether the compat
feature is active or not previously.
2023-01-25 16:46:37 +01:00
Doug
47450cecc9
Add unstable support for discovering a sliding sync proxy (MSC3575) 2023-01-24 20:53:22 +01:00
Kévin Commaille
06820cdc92 common: Use the same percent encoding set consistently 2023-01-24 20:15:09 +01:00
Zwelf
3d74117dd4
events: Add Serialize back to InitialStateEvent 2023-01-24 16:04:47 +00:00
digital
c79f9a97e1 client-api: add support for appservice login 2023-01-19 16:12:22 +01:00
digital
6c00e03c19 client-api: correct typos in comments 2023-01-19 16:12:22 +01:00
Jonas Platte
f99ff2a83c
events: Remove unused Serialize, Deserialize impls 2023-01-18 09:30:47 +01:00
Jonas Platte
62ed200a56
events: Use possibly-redacted content for StrippedStateEvent 2023-01-16 21:28:53 +01:00
Jonas Platte
2eba14f0cc
events: Rework the content traits 2023-01-16 21:28:53 +01:00
Jonas Platte
49a0650f62
events: Remove EventKind
The EventType associated type on EventContent practically provides the
same information.
2023-01-16 21:17:00 +01:00
Damir Jelić
19f68065f1
common: Derive PartialEq and Eq for the KeyUsage enum 2023-01-16 16:13:10 +01:00
Kévin Commaille
48288865db
api: Only percent-encode reserved characters in endpoint URL path 2023-01-16 13:07:33 +01:00
Jonas Platte
b859d9c8b0
common: Derive Debug via StringEnum derive 2023-01-13 13:49:59 +01:00
Jonas Platte
625d5a0782
common: Add DebugAsRefStr derive macro 2023-01-13 13:47:55 +01:00
Jonas Platte
44d4a34d9c
macros: Add automatically_derived attribute to generated impl blocks 2023-01-13 13:11:04 +01:00
Jonas Platte
7de5893b83
common: Use quoted string as Debug representation of event types 2023-01-13 12:54:28 +01:00
Jonas Platte
3a722965f5
macros: Refactor event content generation 2023-01-10 11:46:49 +01:00
Jonas Platte
68a596dbc3
events: Remove RedactedEventContent trait 2023-01-10 11:46:49 +01:00
Kévin Commaille
1d8ea75f6f events: Remove EventContent::from_parts 2023-01-10 11:37:31 +01:00
Kévin Commaille
9a9bd2c933 events: Remove Raw::deserialize_content
Replace it with deserialize_as or deserialize_with_type.
2023-01-10 11:37:31 +01:00
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
Jonas Platte
5912d8ebdd
Remove needless_borrow from list of explicitly enabled lints
… it is currently warn-by-default.
2023-01-02 11:33:20 +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