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
28e3d0f277
events: Remove key::verification::start::SasV1Content verification
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
Jonas Platte
ef96b0f381
Add missing Debug implementations
2021-08-10 15:22:04 +02:00
Jonas Platte
565793a37e
events: Add StaticEventContent trait
2021-08-10 01:26:20 +02:00
Adam Blanchet
13af2e235d
client-api: Implement reasons for leaving a room
2021-08-05 21:04:14 +02:00
Jonas Platte
64fc1c794c
Revert "Stop special-casing zero fields in macro code" for ruma-events
...
This partially reverts commit 9b2602649f9e0fcb875404fc86d9c6fdbedd287d.
2021-07-26 15:01:47 +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
2e88e48eb3
events: Add constructors for ParentEventContent
and ChildEventContent
2021-07-21 21:49:03 +02:00
Jonas Platte
9b2602649f
Stop special-casing zero fields in macro code
2021-07-09 15:10:22 +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
4dfaad104b
Enable clippy lint str_to_string
2021-07-02 23:02:50 +02:00
Häcker Felix
653e4c4838
events: Add missing serde rename for Relation emoji
2021-06-27 21:45:46 +02:00
Jonas Platte
d73ab8add9
events: Add AnyMessageEventContent::relation
2021-06-20 19:34:29 +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
Jonas Platte
05e28f7422
events: Add types for decrypted event payloads
2021-06-20 09:39:48 +02:00
Jonas Platte
090948e04f
events: Consistently use relates_to for Relation field name
2021-06-20 01:32:29 +02:00
Devin Ragotzy
6546add282
Fix typo favourite -> favorite
2021-06-18 22:44:00 +02:00
Devin Ragotzy
e05aad184e
events: Make all pub structs non_exhaustive
2021-06-18 20:53:06 +02:00
Jonas Platte
f4021d0ab0
events: Rename & hide verification enum Custom variants
2021-06-17 19:43:24 +02:00
Jonas Platte
ec4b719546
events: Refactor message relations
...
* Discard unknown relations
* Move new_content into Relation::Replacement
2021-06-17 19:43:23 +02:00
Jonas Platte
2c8af1e17f
events: Import items from original location, not private s in a parent mod
2021-06-17 19:43:23 +02:00
Jonas Platte
dfce734974
events: Clean up verification relations
2021-06-17 19:43:23 +02:00
Jonas Platte
e3084b1f91
events: Clean up reaction event
2021-06-17 19:43:23 +02:00
Jonas Platte
750fe3f1f6
events: Remove ruma-common reexports
2021-06-17 19:43:23 +02:00
Jonas Platte
f179a5c771
events: Drop M
prefix from enum variants
2021-06-17 19:43:23 +02:00
Damir Jelić
06478b96c4
events: Fix the name of the qr code scan verification method
2021-06-17 19:43:22 +02:00
Jonas Platte
e622803679
Use bool::then to simplify some code
2021-06-17 19:43:22 +02:00
Jonas Platte
ddc2138141
events: Clean up docs
2021-06-14 13:42:44 +02:00
Jonas Platte
0ad2e79b84
events: Use str::repeat instead of iter::repeat + collect
2021-06-06 16:34:10 +02:00
Jonas Platte
3cd6dd3dfd
events: Fix import
2021-06-06 15:26:47 +02:00
Amanda Graven
97937d384c
Typo corrections
...
The "comforming" typo in the function name at
crates/ruma-identifiers-validation/src/user_id.rs:22:26
was not corrected as that would be a breaking change.
2021-06-01 12:45:34 +02:00
Marcel
087a2b9012
events: Fix copy-paste mistake
2021-05-22 20:24:59 +02:00
Jonas Platte
87856d512b
events: Add missing newline
2021-05-22 15:35:26 +02:00
Marcel
a322c8cf08
Add support for spaces
2021-05-20 18:36:35 +02:00
Kévin Commaille
52d8ff1ffd
events: Improve room::message markdown constructors
...
Only return an html message if some markdown formatting was detected.
2021-05-18 21:28:15 +02:00
Jonas Platte
676548a2fe
events: Fix lints
2021-05-17 17:10:21 +02:00
Jonas Platte
aa31418961
events: Implement (de)serialization manually for dummy event content
...
The derived implementations use `null` as the serialized form of unit structs.
2021-05-17 16:58:37 +02:00
Jonas Platte
c12f8700b2
events: Make last remaining types non-exhaustive
2021-05-17 00:28:40 +02:00
Jonas Platte
d8ecf12c1f
events: Remove M prefix from some types
2021-05-17 00:18:34 +02:00
Jonas Platte
0d039a4ebb
events: Make remaining types in key::* non-exhaustive
2021-05-17 00:17:54 +02:00
Jonas Platte
62b68966b7
events: Remove accidental duplicate constructor
2021-05-17 00:03:42 +02:00