461 Commits

Author SHA1 Message Date
Jonas Platte
f9c14eb128
events: Fix missing feature-gate on import 2022-02-02 21:10:48 +01:00
Jonas Platte
39041286b9
Move from_raw_json_value to ruma-serde
… and remove unnecessary copies of it.
2022-02-02 20:58:47 +01:00
Jonas Platte
c5550bdbc8
events: Fix missing condition in Unsigned::is_empty under unstable-pre-spec 2022-02-02 20:09:28 +01:00
Jonas Platte
f7a10a7e47
events: Fix missing feature flags 2022-02-02 11:47:56 +01:00
Jonas Platte
f46c7a643f
events: Move space events from unstable-pre-spec to unstable-spec 2022-02-01 22:02:23 +01:00
Jonas Platte
760cbb94fc
events: Move join_authorized_via_users_server to unstable-spec 2022-02-01 21:35:32 +01:00
Jonas Platte
de0b3e1cf3
events: Move RoomMemberEventContent reason field out of unstable-pre-spec
… stable since v1.1.
2022-02-01 21:28:19 +01:00
Jonas Platte
1a4e464422
Move restricted join rules and room versions 8, 9 from unstable-pre-spec to unstable-spec 2022-02-01 20:47:37 +01:00
Jonathan de Jong
8348b97091
Improve Synapse compatibility w.r.t. power levels 2022-02-01 15:26:30 +01:00
Jonas Platte
89ae41166d
events: Move new verification events out of unstable-pre-spec
… since they were stabilized with v1.1.
2022-01-31 20:43:38 +01:00
Jonas Platte
90fe9edc32
events: Remove questionable trait implementations
They weren't really useful for user code.
2022-01-31 20:43:38 +01:00
Jonas Platte
392cf23d4b
events: Don't store data of unknown events in enums 2022-01-29 02:08:33 +01:00
Jonas Platte
38ba38228a
events: Use PrivOwnedStr for #[doc(hidden)] event_type field 2022-01-29 01:31:18 +01:00
Jonas Platte
37095f8855
events: Fix missing import 2022-01-23 17:22:25 +01:00
Jonas Platte
46d2957c29
events: Use TransactionId for secret request IDs 2022-01-23 17:21:53 +01:00
Jonas Platte
9aa748459a
Revert "identifiers: Add SecretRequestId"
This reverts commit aafbe14923a9272029652e7f56ef2aa809b03e34.
2022-01-23 17:20:59 +01:00
Jonas Platte
aafbe14923
identifiers: Add SecretRequestId 2022-01-23 17:01:24 +01:00
Jonas Platte
0dbeac8505
events: Fix wrong base64 character set for k field in JsonWebKey 2022-01-23 13:48:42 +01:00
Timo Kösters
08d60b3d37
events: Add is_allowed method to RoomServerAclEventContent 2022-01-17 11:47:39 +00:00
Jonas Platte
026c186b32
events: Fix non-public doc(hidden) fn 2022-01-17 11:16:51 +01:00
Jonas Platte
e387abda81
events: Raise an error when trying to serialize _Custom variant of event content enum 2022-01-17 00:43:00 +01:00
Jonas Platte
ef6728abde
Add a TransactionId type 2022-01-16 23:17:23 +01:00
Jonas Platte
4c859c5aeb
Introduce a Base64 type and use it where applicable 2022-01-13 16:22:21 +01:00
Jonas Platte
ee977b48f0
Make the inner type of _Custom enum variants unusable
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00
Julian Sparber
f8ba7f7957
ruma-events: Add CancelCode variants for SAS verification
See: https://spec.matrix.org/v1.1/client-server-api/#verification-messages-specific-to-sas
2022-01-12 21:48:06 +01:00
Jonas Platte
3cb728e61a
Enforce most serde_json import renames through clippy 2022-01-03 12:28:15 +01:00
Jonas Platte
9621b83d49
Use doc_auto_cfg for automatic cfg documentation 2022-01-02 19:22:42 +01:00
homersimpsons
2d3816d72c
ruma-events: Add links to specs in modules docs 2021-12-28 14:36:34 +00:00
Damir Jelić
ee3c8f3335 ruma: Fix a bunch of typos 2021-12-06 11:26:14 +01:00
Devin Ragotzy
d15c877ad1
events: Update m.room.member for room versions 7 - 9
* Add join_authorized_via_users_server key for roomver 8+
* Add custom redaction impl for RoomMemberEventContent
2021-11-26 22:11:28 +00:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names 2021-11-26 01:07:26 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST 2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST 2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
b0db5e94e1
identifiers: Make RoomAliasId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
ec605a0959
identifiers: Make MxcUri a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST 2021-11-25 22:34:40 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases 2021-11-25 21:07:14 +01:00
Jonas Platte
1e9f846722
events: Add accessor methods for RoomMessageEventContent 2021-11-23 10:50:14 +01:00
Jonas Platte
897146e369
events: Fix some docs being on wrong constructor 2021-11-19 10:49:11 +01:00
Jonas Platte
49e5d45ac9
events: Improve usability and docs of m.room.message reply constructors 2021-11-18 22:51:58 +01:00
Jonas Platte
24950b208e
events: Stop relying on UserId Debug format 2021-11-18 21:41:10 +01:00
Jonas Platte
824ef40bd9
events: Move message reply helper functions into a separate module 2021-11-18 20:20:43 +01:00
Jonas Platte
1a87403ba2
Rewrite some Display & Debug implementations
To delete in a more obvious way and to include debug formatting for
Debug impls (i.e. enclose the string in quotes).
2021-11-18 19:49:40 +01:00
Jonas Platte
3959ec4abb
events: Fix a typo 2021-11-18 19:32:02 +01:00
Jonas Platte
b7334edaf7
events: Update reply ctor argument types 2021-11-18 19:12:08 +01:00
Devin Ragotzy
bdce12b07e
state-res: Add some docs and fix a typo 2021-11-12 14:40:43 +01:00
Jonas Platte
0c1e1df8ad
events: Fix test
… wasn't failing CI because `#[test]` attribute was missing.
2021-10-29 22:13:44 +02:00
Jonas Platte
3ea16b6d09
events: Update comment, silence lint 2021-10-29 22:13:26 +02:00