93 Commits

Author SHA1 Message Date
Jonas Platte
2bf17fd727
events: Further clean up tests 2021-09-19 19:10:52 +02:00
Jonas Platte
9929a3f8d5
events: Clean up some tests 2021-09-19 18:56:12 +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
b0e6b22ffe
events: Fix a test 2021-09-15 20:36:15 +02:00
Jonas Platte
72538d1de5
events: Update expected output for trybuild test 2021-08-17 13:01:09 +02:00
Jonas Platte
b9486b91fa
events: Truly appease clippy 2021-08-16 23:48:17 +02:00
Jonas Platte
1077889e4e
events: Appease clippy 2021-08-16 23:26:50 +02:00
Jonas Platte
f859d543e1
events: Test new prev_content compat code 2021-08-16 23:10:58 +02:00
Jonas Platte
367f4ac0e6
events: Fix UI test failing with compat feature 2021-08-16 23:10:46 +02:00
Jonas Platte
fb0e3008bb
events: Fix test failing with compat feature 2021-08-16 23:10:28 +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
Adam
976f90a1a2
events: Add RoomName struct to room::name 2021-08-10 15:22:26 +02:00
Adam
e3427ba5d0
Update expected stderr on tests for Rust 1.54 2021-08-02 19:46:01 +00: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
Devin Ragotzy
e05aad184e events: Make all pub structs non_exhaustive 2021-06-18 20:53:06 +02:00
Jonas Platte
349a57ffc7
events: Rename & hide event enum Custom variant 2021-06-17 19:43:23 +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
f179a5c771
events: Drop M prefix from enum variants 2021-06-17 19:43:23 +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
76c9c56471
events: Make more types non-exhaustive 2021-05-16 23:47:38 +02:00
Jonas Platte
ecf875358c
events: Fix issues from not testing previous commits 2021-05-16 22:53:00 +02:00
Jonas Platte
7626135faf
events: Make fields of doc(hidden) struct private 2021-05-16 22:34:24 +02:00
Jonas Platte
f77b49d4b8
events: Make more types non-exhaustive in room::message 2021-05-15 22:20:48 +02:00
Jonas Platte
89b169faf3
events: Fix redacted tests 2021-05-15 15:20:17 +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
702b619417
events: Introduce Redact trait 2021-05-15 13:26:05 +02:00
Jonas Platte
18005244c9
events: Merge RedactedSyncUnsigned and RedactedUnsigned 2021-05-15 13:12:13 +02:00
Devin Ragotzy
d1f5fb1d87
events: Declare all event enums inside one macro invocation 2021-05-14 23:52:34 +00:00
Devin Ragotzy
058d2bfa24 Add kind = ToDevice for all to device content 2021-05-14 12:25:30 +02:00
Devin Ragotzy
8252a1a32c Move all content declarations to content trait attribute 2021-05-14 12:25:30 +02:00
Jonas Platte
fe68bf0e07
Clean up json! formatting 2021-05-14 01:13:42 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Kévin Commaille
7faa59be6b events: Remove BasicToDevice enum 2021-05-12 16:02:44 +02:00
Kévin Commaille
8d8ca81e04 events: Split Basic enum into GlobalAccountData, RoomAccountData and BasicToDevice enums
Closes #563
2021-05-12 16:02:44 +02:00
Kévin Commaille
6a2c028cfb events: Change receipt::Receipts struct to a BTreeMap<ReceiptType, UserReceipts> 2021-05-11 10:11:02 +02:00
Jonas Platte
698087337b
events: Pass RoomVersionId by reference in redact method 2021-05-10 11:29:28 +02:00
Jonas Platte
e9218f182a
events: Remove AnyEvent from enum tests 2021-05-09 20:51:40 +02:00
Jonas Platte
b96ab9580e
events: Update stderr for ui test
The order in which errors are emitted changed.
2021-05-06 18:47:18 +02: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