1155 Commits

Author SHA1 Message Date
Jonas Platte
e136f486db
events: Move membership change logic into its own module 2022-04-25 13:07:56 +02:00
Jonas Platte
106441bdef
events: Clean up implementation of membership_change 2022-04-25 13:07:56 +02:00
Jonas Platte
40221e3cd8
events: Add membership_change method to all kinds of member events 2022-04-25 13:07:56 +02:00
Jonas Platte
a3a7b20678
events: Make more use of event type aliases 2022-04-25 13:07:55 +02:00
Jonas Platte
aa2c152aa2 client-api: Update type of get_member_events::Response::chunk 2022-04-21 21:36:31 +02:00
Jonas Platte
a5f1c9145c
client-api: Fix missing stable endpoint paths 2022-04-21 18:37:19 +02:00
Jonas Platte
eae7fa0a7d common: Replace unwrap with expect in (Milli)SecondsSinecUnixEpoch constructors 2022-04-21 17:16:02 +02:00
Jonas Platte
4f65489e8d common: Make js and rand features work together 2022-04-21 17:16:02 +02:00
Jonas Platte
dc692e7c16 common: Add support for obtaining the system time in wasm + JS environments 2022-04-21 17:16:02 +02:00
Jonas Platte
d32d60c868 common: Add SecondsSinceUnixEpoch::now 2022-04-21 17:16:02 +02:00
Jonas Platte
733823ea3c common: Improve docs for MilliSecondsSinceUnixEpoch::now 2022-04-21 17:16:02 +02:00
Johannes Becker
6b768dc033
events: Add conversion from RoomPowerLevels to RoomPowerLvelsEventContent 2022-04-21 10:29:56 +00:00
Jonas Platte
3a47403a75 events: Add changelog entry for generic state_key 2022-04-21 11:16:38 +02:00
Jonas Platte
ae7461622c events: Update state key types for all state events
… and make it mandatory to specify for state events.
2022-04-21 11:16:38 +02:00
Jonas Platte
d8b7886382 events: Allow state key type to be customized by content type 2022-04-21 11:16:38 +02:00
Jonas Platte
da222a87c9 macros: Remove trait import 2022-04-21 11:16:38 +02:00
Jonas Platte
e131606b2f ruma: Clean up doc formatting 2022-04-20 18:31:37 +02:00
Jonas Platte
4365a51e2a
Upgrade some dependencies 2022-04-20 16:58:48 +02:00
Jonas Platte
cbf71d848a identifiers: Make parse return owned IDs and add parse_box 2022-04-20 10:39:36 +02:00
Jonas Platte
efe48af207 Replace remaining uses of boxed IDs with dedicated owned ones 2022-04-20 10:39:36 +02:00
Jonas Platte
76478de953 Remove either feature 2022-04-20 10:39:36 +02:00
Jonas Platte
6100a0fa12 Use new owned ID types in more places 2022-04-20 10:39:36 +02:00
Jonas Platte
efc869ce9d client-api: Use new owned ID types 2022-04-20 10:39:36 +02:00
Jonas Platte
f1c168175b ruma: Re-export new owned ID types 2022-04-20 10:39:36 +02:00
Jonas Platte
489f51e231 events: Replace most Box<Id>s with new owned ID types 2022-04-20 10:39:36 +02:00
Jonas Platte
026ccd7e5b common: Use new owned ID types in non-event modules 2022-04-20 10:39:36 +02:00
Jonas Platte
d855ec33d6 identifiers: Update ToOwned implementations to use new types
… and a lot of changes that cascaded from that.
2022-04-20 10:39:36 +02:00
Jonas Platte
ab94bed1dc api: Change Incoming derive to use owned ID types
… except for a few ID types that don't have an owned variant yet.
2022-04-20 10:39:36 +02:00
Jonas Platte
01e080d0b5 identifiers: Add owned key id type aliases 2022-04-20 10:39:36 +02:00
Jonas Platte
6434fd8c92 identifiers: Add conversions from strings to owned ID types 2022-04-20 10:39:36 +02:00
Jonas Platte
f6c74fa23a identifiers: Add manual Clone impl for owned ID types
… to get rid of unnecessary bounds.
2022-04-20 10:39:36 +02:00
Johannes Becker
d7a53d8bac
common: Make Restricted::allow public 2022-04-19 15:34:33 +02:00
Jakub Kubík
09ac0aa3ac
fix: Correct rule IDs in predefined Rulesets 2022-04-17 22:58:19 +02:00
Jonas Platte
3ec8218158
state-res: Update fetch_state type 2022-04-15 12:06:09 +02:00
Jonas Platte
a567b9151d ruma: Remove common module (ruma-common export) 2022-04-14 17:28:12 +02:00
Jonas Platte
ae095cc037
macros: Expand IdZst derive to generic types
… and use it for KeyId.
2022-04-14 13:57:02 +02:00
Jonas Platte
5d8f6748e6
identifiers: Add extra PartialEq implementations for owned ID types 2022-04-14 11:37:35 +02:00
Jonas Platte
d36157a57c
identifiers: Add Display implementation for owned types 2022-04-14 11:37:35 +02:00
Jonas Platte
ed92a4fbd7
identifiers: Implement From<&Id> for String 2022-04-14 11:37:35 +02:00
Jonas Platte
d5656f3399
identifiers: Rename from_owned to from_box 2022-04-14 11:37:35 +02:00
Jonas Platte
f658487c50
identifiers: Replace most macro_rules! code with proc-macro code 2022-04-14 11:16:01 +02:00
Kévin Commaille
a2df988c23 events: Add convenience constructors for threads 2022-04-13 20:25:55 +02:00
Jonas Platte
1db716f643
events: Add transaction_id accessor to applicable event enums 2022-04-13 16:47:42 +02:00
Jonas Platte
dd24d6be77
events: Add {RoomRedactionEvent, SyncRoomRedactionEvent}::as_original 2022-04-13 16:43:41 +02:00
Jonas Platte
d0faeb52f3
events: Add RoomPowerLevels::{for_user, max} 2022-04-13 16:17:55 +02:00
Jonas Platte
2f32e9863e
events: Remove invalid copy-pasted docs 2022-04-13 16:17:55 +02:00
Jonas Platte
cfc5c6e88f
events: Add {RoomGuestAccessEvent, SyncRoomGuestAccessEvent}::guest_access 2022-04-13 16:17:55 +02:00
Jonas Platte
ea832d0c45
events: Add {RoomHistoryVisibilityEvent, SyncRoomHistoryVisibilityEvent}::history_visibility 2022-04-13 15:33:05 +02:00
Jonas Platte
16f2021c59
events: Add {RoomJoinRulesEvent, SyncJoinRulesEvent}::join_rule 2022-04-13 15:31:40 +02:00
Jonas Platte
548232ef5a
events: Add as_original methods to possiby-redacted event enums 2022-04-11 15:49:39 +02:00