91 Commits

Author SHA1 Message Date
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
Jonas Platte
090948e04f
events: Consistently use relates_to for Relation field name 2021-06-20 01:32:29 +02:00
Devin Ragotzy
e05aad184e events: Make all pub structs non_exhaustive 2021-06-18 20:53:06 +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
750fe3f1f6
events: Remove ruma-common reexports 2021-06-17 19:43:23 +02:00
Jonas Platte
e622803679
Use bool::then to simplify some code 2021-06-17 19:43:22 +02:00
Jonas Platte
0ad2e79b84
events: Use str::repeat instead of iter::repeat + collect 2021-06-06 16:34:10 +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
4dd9baa238
Improve consistency in docs 2021-05-16 23:38:19 +02:00
Jonas Platte
aba58909aa
events: Remove questionable trait implementation 2021-05-16 23:21:58 +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
Jonas Platte
37899db3c5
events: Borrow raw JSON in EventContent::from_parts 2021-05-15 15:02:27 +02:00
Jonas Platte
60d4ea027f
Use serde_json::Result alias 2021-05-15 15:02:02 +02:00
Devin Ragotzy
34134267c6
events: Generate redact method for content enums
… and remove redacted content structs non-room events
2021-05-15 12:51:20 +00:00
Jonas Platte
c07c3fa6d5
events: Introduce RedactContent trait 2021-05-15 13:23:20 +02:00
Devin Ragotzy
8252a1a32c Move all content declarations to content trait attribute 2021-05-14 12:25:30 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Jonas Platte
698087337b
events: Pass RoomVersionId by reference in redact method 2021-05-10 11:29:28 +02:00
Adam
8adc9a0eb6
events: Add helpers to construct the fallback for rich replies 2021-05-10 10:06:40 +02:00
Kévin Commaille
24154195a0
events: Construct EncryptedEventContent from EncryptedEventScheme 2021-05-07 09:53:35 +00:00
Kévin Commaille
db76c22180
events: Add constructor for EncryptedEventContent 2021-05-07 11:34:10 +02:00
Jonas Platte
b759955a52
events: Add missing Default implementation 2021-05-06 14:07:38 +02:00
Devin Ragotzy
5090c11843
Enable non-default clippy lints 2021-05-06 11:07:31 +00:00
Devin Ragotzy
c6aa2e0428 Fix clippy warnings across workspace 2021-05-06 06:16:28 -04:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00