37 Commits

Author SHA1 Message Date
Jonas Platte
2914c0b6a0
events: Add AnySyncRoomEvent::into_full_event 2021-05-15 02:27:03 +02:00
Jonas Platte
6db34b8ae4
events: Add accessor methods to AnyRoomEvent, AnySyncRoomEvent 2021-05-15 02:25:35 +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
b6558c64a0 Add global and room account content traits and to device trait 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
Devin Ragotzy
c7c1251f3f Specify content traits in attribute, remove derives 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
Damir Jelić
d971b668ec events: Add the to-device variant of the m.key.verification.done event 2021-05-12 17:07:47 +02:00
Damir Jelić
166ee8b9d7 events: Add the to-device variant of the m.key.verification.ready event 2021-05-12 17:07:47 +02:00
Kévin Commaille
cb489729b8 events: Update IgnoredUserListEvent test 2021-05-12 16:02:44 +02:00
Kévin Commaille
7fd350d6c6 events: Restore docs for DummyEvent and RoomKeyEvent 2021-05-12 16:02:44 +02:00
Kévin Commaille
0acb121ee5 events: Remove BasicEventContent trait and derive 2021-05-12 16:02:44 +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
Devin Ragotzy
dcff455c19
ci: Enforce sorted dependencies with cargo-sort 2021-05-11 19:59:44 +00:00
Kévin Commaille
6a2c028cfb events: Change receipt::Receipts struct to a BTreeMap<ReceiptType, UserReceipts> 2021-05-11 10:11:02 +02:00
Kévin Commaille
d16fbe6fe6
events: Fix event deserialization benchmark
Regression introduced in e8d81da49281717ad46f36b76c40fc3853d2aafd
2021-05-10 13:02:22 +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
Jonas Platte
aca64eccea
events: Remove AnyEvent enum 2021-05-09 21:06:25 +02:00
Jonas Platte
e9218f182a
events: Remove AnyEvent from enum tests 2021-05-09 20:51:40 +02:00
Jonas Platte
e8d81da492
events: Remove AnyEvent deserialization benchmark 2021-05-09 20:41:07 +02:00
Kévin Commaille
bbb0b36536
events: Move FullyReadEvent from EphemeralRoomEvent to BasicEvent 2021-05-08 22:19:54 +02:00
Jonas Platte
ee39f7c28c
events: Add missing dependency feature 2021-05-08 00:44:04 +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
b96ab9580e
events: Update stderr for ui test
The order in which errors are emitted changed.
2021-05-06 18:47:18 +02:00
Kévin Commaille
6501e3dc30
events: Add TagName::User variant and display_name method 2021-05-06 16:00:21 +00:00
Jonas Platte
729fb51d77
Remove allow(clippy::lint) attributes that are no longer necessary 2021-05-06 14:31:52 +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
cf291bd5ba
Clean up lint attributes 2021-05-05 23:39:52 +02:00
Kévin Commaille
448e29ce24
events: Add tag::TagName type 2021-05-03 17:33:12 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00