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
Jonas Platte
a9985d7763
events / state-res: Use RawJsonValue over JsonValue for event content
2021-09-15 20:58:42 +02:00
Jonas Platte
1df1256a86
events: Put pdu module behind an unstable feature flag
2021-09-15 20:58:37 +02:00
Jonas Platte
bb9f95224c
events: Remove RedactedStrippedStateEvent
...
Stripped state events are never redacted.
2021-09-15 20:36:20 +02:00
Jonas Platte
0196c53530
events: Remove outdated docs
2021-09-15 20:06:26 +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
77cf085ab9
events: Don't store extra fields for unknown events in content enums
2021-08-22 13:54:20 +02:00
Jonas Platte
a81880c68f
events: Rework Relation serde
...
Relation types now implement `Deserialize`, `Serialize`.
2021-08-21 15:20:15 +02:00
Adam
d746244241
events: Generate From impls for event (content) enums
2021-08-17 15:44:33 +00:00
Jonas Platte
098339056b
events: Add a compat workaround for prev_content in unsigned
2021-08-16 22:55:27 +02:00
Jonas Platte
f954865d4d
events: Move unsigned types into a new module
2021-08-14 23:36:51 +02:00
Adam
0768f551c3
events: Add unstable support for secret sharing
2021-08-13 14:59:20 +00:00
Jonas Platte
e9cb896bf7
events: Silence clippy lint
2021-08-12 21:36:20 +02:00
Jonas Platte
44a998f70d
events: Remove unnecessary qualification
2021-08-12 21:23:03 +02:00
Jonas Platte
3b0afb520a
events: Optimize deserialization helpers
2021-08-12 20:46:15 +02:00
Jonas Platte
6177bfccef
events: Add missing ctor / From impl for EncryptedToDeviceEventContent
2021-08-11 21:08:24 +02:00
Jonas Platte
9445e8756a
events: Derive / implement StaticEventContent for all relevant types
2021-08-11 20:31:03 +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
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