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
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
e7f01ca55a
client-api: Use Raw for create_room::Request::creation_content
2021-10-24 00:43:49 +02:00
Jonas Platte
401c0b07b3
Fix clippy warnings
2021-10-19 22:15:59 +02:00
Tilo Spannagel
8fcd58c8de
events: Add markdown constructors to RoomMessageEventContent
2021-10-11 09:31:30 +02:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs
2021-10-08 12:49:13 +02:00
Jonas Platte
271491732e
Remove now-redundant doc(cfg) attributes
...
They are now implied:
https://github.com/rust-lang/rust/pull/89596
2021-10-08 11:52:18 +02:00
Jonas Platte
04080085f9
events: Include all event type segments in Rust type names
2021-10-02 21:25:21 +02:00
Jonas Platte
c807f9f43d
events: Add redacted redaction event types
2021-10-02 13:48:22 +02:00
Jonas Platte
e41abbb56b
events: Implement Redact for event structs
...
… it was only implemented for the enums before.
2021-10-02 01:19:36 +02:00
Jonas Platte
edbd5a696c
events: Use inline code blocks instead of emphasis for type strings
2021-10-01 18:35:01 +02:00
Jonas Platte
0101e110f8
Rename *ToDeviceEventContent
structs to ToDevice*Content
2021-10-01 16:48:45 +02:00
Jonas Platte
120f1f3b2a
events: Generate event type aliases
2021-09-30 00:47:13 +02:00
Amanda Graven
3b5f3cb5a6
events: Move JoinRulesEventContent.allow into JoinRules
2021-09-28 13:39:58 +00:00
Jonas Platte
27a3e70465
events: Don't return body as part of MessageType::data
2021-09-27 13:01:50 +02:00
Jonas Platte
af250cf108
Merge JsonObject type aliases
2021-09-27 12:55:31 +02:00
Jonas Platte
fde518ea89
events: Adjust docs for MessageType::data
2021-09-27 12:52:47 +02:00
Jonas Platte
8b44f279c8
Use server_name! macro in tests
2021-09-23 20:33:45 +02:00
Jonas Platte
83b66ab8c2
Add allow to JoinRulesEventContent
...
Co-authored-by: Amanda Graven <amanda@amandag.net>
2021-09-20 20:34:53 +02:00
Jonas Platte
2bf17fd727
events: Further clean up tests
2021-09-19 19:10:52 +02:00
Jonas Platte
4ec9f1aa03
events: Require MessageType to always contain a body
2021-09-17 19:09:17 +02:00
ftilde
a875f39648
events: Fix quoting of multiline fallback messages
...
Previously, a '> ' was prepended only to the first line of the quoted
message.
2021-09-11 23:31:15 +02:00
Jonas Platte
46c7e3f811
Clean up and rewrap documentation comments
2021-08-27 21:32:02 +02:00
Jonas Platte
c13737af04
Copy new spec description of MemberEventContent#reason
2021-08-27 10:06:14 +02:00
Jonas Platte
a81880c68f
events: Rework Relation serde
...
Relation types now implement `Deserialize`, `Serialize`.
2021-08-21 15:20:15 +02:00
Jonas Platte
6177bfccef
events: Add missing ctor / From impl for EncryptedToDeviceEventContent
2021-08-11 21:08:24 +02:00
Jonas Platte
b2b8265ded
events: Split EncryptedEventContent in two
2021-08-11 18:54:25 +02:00
Jonas Platte
202fc5132a
events: Remove deprecated method NameEventContent::name
2021-08-11 17:06:42 +02:00
Adam
63411165da
Move RoomName
to ruma-identifiers
and use it more
2021-08-10 15:22:47 +02:00
Jonas Platte
6ee3955483
Remove most deprecated items
2021-08-10 15:22:46 +02:00
Jonas Platte
d213ee4718
events: Remove / replace previous error types
2021-08-10 15:22:45 +02:00
Adam
976f90a1a2
events: Add RoomName struct to room::name
2021-08-10 15:22:26 +02:00
Devin Ragotzy
db755f994e
events: Make all pub enums non_exhaustive
2021-08-10 15:22:26 +02:00
Jonas Platte
7a61c9cd8c
Remove trait derives other than Debug from Init structs
2021-08-10 15:22:26 +02:00
Adam Blanchet
13af2e235d
client-api: Implement reasons for leaving a room
2021-08-05 21:04:14 +02:00
Jonas Platte
6236b024fd
events: Fix new_content serialization in the plain-text part of m.encrypted
2021-07-26 13:52:49 +02:00
Devin Ragotzy
3101be1f99
Add macro-braces, disallowed-type and import-rename clippy lints
2021-07-22 14:34:30 +02:00
Adam
118ea0f85a
Update endpoints for blurhash implementation
...
* Add blurhash to profile and avatar endpoints.
* Add `blurhash` fields to `GET /_matrix/federation/v1/query/profile`
and `m.room.member`.
* Add `generate_blurhash` field to `PUT /_matrix/media/r0/upload`
2021-07-04 18:38:06 +02:00
Jonas Platte
61671f4440
events: Add event relation conversions
2021-06-20 19:34:29 +02:00
Jonas Platte
84829e23dc
events: Remove shared Relation type in favor of more per-event-type ones
2021-06-20 19:27:12 +02:00
Jonas Platte
1c31d31be1
events: More consistent item ordering for room::encrypted
2021-06-20 18:38:06 +02:00