92 Commits

Author SHA1 Message Date
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
Jonas Platte
d7d449656c
events: Make assert_matches! invocations slight more compact 2021-05-16 23:55:46 +02:00
Damir Jelić
698d78a6f3
events: Add support for the QR verification events and methods 2021-05-16 23:49:33 +02:00
Jonas Platte
76c9c56471
events: Make more types non-exhaustive 2021-05-16 23:47:38 +02:00
Jonas Platte
4dd9baa238
Improve consistency in docs 2021-05-16 23:38:19 +02:00
Jonas Platte
d03a7363e6
events: Update definition of DummyToDeviceEventContent
Make it a unit struct instead of a struct struct without fields.
2021-05-16 23:23:19 +02:00
Jonas Platte
aba58909aa
events: Remove questionable trait implementation 2021-05-16 23:21:58 +02:00
Jonas Platte
062c2cc55b
events: Make remaining types in call::* non-exhaustive 2021-05-16 23:16:24 +02:00
Jonas Platte
ecf875358c
events: Fix issues from not testing previous commits 2021-05-16 22:53:00 +02:00
Jonas Platte
55df2aa26a
events: Make remaining types in room::* non-exhaustive 2021-05-16 22:45:48 +02:00
Jonas Platte
504c7ad06e
events: Remove non-exhaustive attribute from enum with hidden variant 2021-05-16 22:36:57 +02:00
Jonas Platte
01f20b17c0
events: Make remaining types in room::message non-exhaustive 2021-05-16 22:36:06 +02:00
Jonas Platte
7626135faf
events: Make fields of doc(hidden) struct private 2021-05-16 22:34:24 +02:00
Jonas Platte
61a033db58
Improve documentation 2021-05-16 22:07:00 +02:00
Jonas Platte
2ada8690f8
events: Make FileMessageEventContent non-exhaustive 2021-05-16 00:14:23 +02:00
Jonas Platte
f77b49d4b8
events: Make more types non-exhaustive in room::message 2021-05-15 22:20:48 +02:00
Jonas Platte
54cf81e9ab
events: Make room::member types non-exhaustive 2021-05-15 18:42:14 +02:00