239 Commits

Author SHA1 Message Date
Jonas Platte
bf670fb814 identifiers: Move session ID validation out of separate validation crate 2022-06-08 13:31:38 +02:00
Jonas Platte
56cf3ce94c Allow buggy clippy lint on a per-crate basis
The previous method of allowing it through .cargo/config.toml doesn't
seem to work anymore.
2022-06-08 11:45:29 +02:00
Kévin Commaille
f158817a7c events: Move extensible event RoomMessageEventContent convertors 2022-06-07 17:14:52 +02:00
Kévin Commaille
9ea6c3c6ab events: Move msgtype types in separate files 2022-06-07 17:14:52 +02:00
Kévin Commaille
63ec3a43aa common: Split test assertions 2022-06-07 12:07:57 +02:00
Kévin Commaille
35d6b90aeb serde: Split test assertions 2022-06-07 12:07:57 +02:00
Kévin Commaille
085dc435fa push: Split test assertions 2022-06-07 12:07:57 +02:00
Kévin Commaille
191f3aca67 events: Split more test assertions 2022-06-07 12:07:57 +02:00
Jonas Platte
a8e7c47bbe
Remove RoomName type 2022-06-03 11:40:33 +02:00
Jonas Platte
8912182c56
Increase usage of implicit named arguments in format strings 2022-06-03 10:06:28 +02:00
Jonas Platte
73c2963ebd
Enforce consistent semicolons after ()-typed expressions in blocks 2022-06-03 08:40:16 +02:00
Kévin Commaille
34b549f89f events: Escape HTML reserved characters in plain text reply fallback 2022-06-01 12:01:04 +02:00
Kévin Commaille
806d389e13 events: Don't send pretty-printed HTML fallback in replies 2022-06-01 12:01:04 +02:00
Kévin Commaille
3c507afc90 events: Refactor reply code 2022-06-01 12:01:04 +02:00
Kévin Commaille
0c67c6b3db docs: Reword docs for StringEnum 2022-05-30 17:17:06 +02:00
Kévin Commaille
240c8bc4b8 macros: Derive as_str() for types that derive StringEnum 2022-05-30 17:17:06 +02:00
Kévin Commaille
7f164b3173 doc: Add doc link to as_str implementations 2022-05-30 17:17:06 +02:00
Kévin Commaille
4d89c7cc08 doc: Use markdown doc for types deriving StringEnum 2022-05-30 17:17:06 +02:00
Kévin Commaille
906d576a27
Implement Improved Signalling for 1:1 VoIP
According to MSC2746
2022-05-30 14:09:58 +02:00
Kévin Commaille
b9f66dba6d
identifiers: Re-export custom parse errors 2022-05-29 11:57:35 +02:00
Jonas Platte
5f902851af
Upgrade to Rust 2021 2022-05-27 12:04:23 +02:00
Kévin Commaille
c3d573e943
events: Add support for polls
According to MSC3381
2022-05-25 12:03:45 +02:00
Jonas Platte
e50d59f7a4
Split up some test assertions 2022-05-25 09:08:48 +02:00
Jonas Platte
22fbb9ee24
events: Update doctest 2022-05-24 18:18:43 +02:00
Jonas Platte
b34bfaf1f6
Replace matches crate with assert_matches 2022-05-24 18:07:29 +02:00
Kévin Commaille
87346e1c9b events: Allow internal use of deprecated fields 2022-05-24 15:28:43 +02:00
Kévin Commaille
1c90770d93
events: Split SessionDescription between Answer and Offer 2022-05-24 14:40:30 +02:00
Kévin Commaille
baa6dc591e
events: Change BundledAnnotation to a struct 2022-05-24 12:30:27 +00:00
Jonas Platte
8bf74a0ce7
identifiers: Remove dead code 2022-05-24 10:29:44 +02:00
Jonas Platte
2257b4daf9
Derive Eq for types where it makes sense 2022-05-23 18:40:34 +02:00
Jonas Platte
0a47a2d915
events: Remove PartialEq impl for SessionDescription 2022-05-23 18:28:34 +02:00
Jonas Platte
b1cb6cd4c0
events: Remove PartialEq impl on NotificationPowerLevels 2022-05-23 18:24:58 +02:00
Jonas Platte
6a2950884d push: Consider push rules to not apply to events sent by the user themselves 2022-05-12 12:17:55 +02:00
Jonas Platte
af07bfb8f4
events: Improve deprecation note for fields deprecated by MSC3700 2022-05-11 14:06:01 +02:00
Jonas Platte
4e4c2b0552
events: Implement MSC3700 2022-05-10 20:52:57 +02:00
Kévin Commaille
abf735093c
events: Fix serde of event types with suffix 2022-05-09 10:41:22 +00:00
Jonas Platte
bf55ca1556
events: Add (Sync)RoomMemberEvent::membership 2022-05-06 15:59:09 +02:00
Damir Jelić
22a0729442
events: Re-export the Change struct publicly 2022-05-05 09:48:47 +02:00
Kévin Commaille
3ddc4de758 macros: Require event module path for event_enum 2022-05-04 13:11:54 +02:00
Jonas Platte
80dae90925
events: Add StrippedPowerLevelsEvent::power_levels 2022-05-02 16:25:28 +02:00
Jonas Platte
e479d2db05
events: Use Into<RoomEventType> impls to avoid String roundtrips 2022-04-29 12:22:48 +02:00
Jonas Platte
9cfee27722
identifiers: Clean up error enum 2022-04-27 19:09:44 +02:00
Jonas Platte
e3ee951856 events: Add support for m.identity_server account data 2022-04-27 19:08:01 +02:00
Jonas Platte
22fbb8e0dc api: Update error messages 2022-04-27 15:24:18 +02:00
Naman Sandilya
0cdd6a7b0f
Return owned value for origin_server_ts accessors 2022-04-27 10:30:24 +00:00
Adam
1fd47fa034
events: Add secret storage 2022-04-26 14:38:19 +02:00
Jonas Platte
2669be6087
events: Add details to MembershipChange::ProfileChanged 2022-04-26 12:34:00 +02:00
Jonas Platte
b3ccdcade0
events: Derive Clone and Debug for MembershipDetails 2022-04-26 12:27:31 +02:00
Jonas Platte
4643ae9b0e
events: Remove Deserialize and Serialize impls for MembershipChange 2022-04-26 12:27:21 +02:00
Kévin Commaille
291b657e6d events: Add RoomPowerLevels::user_can_do
Know whether or not a user can do a given action with the power levels.
2022-04-26 11:18:21 +02:00