Damir Jelić
3bdead1cf2
client-api: Allow the DeviceId to turn into a DeviceIdOrAllDevices
2021-05-12 17:07:47 +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
dd940f810e
common: Use ruma-serde derives for ReceiptType
2021-05-11 10:11:02 +02:00
Kévin Commaille
32e80987e1
serde: Add PartialOrdAsRefStr, OrdAsRefStr and PartialEqAsRefStr derives
2021-05-11 10:11:02 +02:00
Kévin Commaille
6a2c028cfb
events: Change receipt::Receipts struct to a BTreeMap<ReceiptType, UserReceipts>
2021-05-11 10:11:02 +02:00
Jonathan de Jong
91a7325bc4
Remove various Box<>
wrappers
2021-05-10 17:15:11 +02:00
Jonas Platte
d71fa97346
Use slices for outgoing raw bodies
2021-05-10 15:16:37 +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
Jonas Platte
c648f83cb6
events: Improve variable names in macro code
2021-05-10 11:23:45 +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
7adc141aa0
appservice-api: Replace use of AnyEvent in push_events with AnyRoomEvent
2021-05-09 21:04:13 +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
Jonas Platte
08e87ac3bf
api: Remove redundant clone
2021-05-09 00:02:44 +02:00
Kévin Commaille
bbb0b36536
events: Move FullyReadEvent from EphemeralRoomEvent to BasicEvent
2021-05-08 22:19:54 +02:00
gnieto
b610a725e8
Make try_into_http_response
more safe
...
Remove `expect`s and `unwrap`s from `try_into_http_response`.
2021-05-08 20:22:06 +02:00
gnieto
e2eb92b8ed
Prevent panic on requests with invalid URIs
...
When `try_into_http_request` was used with an invalid base URI the code
was panicking. Acording to `http::request::Builder` documentation,
`headers_mut` returns `None` if the builder contains errors, which was
the case when an invalid URI was provided.
The new version only sets the additional headers in case that there are
no errors on the builder, preventing the panic. The conversion will
return an error when the builder is consumed on `body`.
2021-05-08 18:12:56 +02:00
Jonas Platte
a0f7e1b771
api: Replace error::Void by error::MatrixError
2021-05-08 14:33:12 +02:00
Jonas Platte
c01e8340eb
serde: Add From implementations for CanonicalJsonValue
2021-05-08 14:03:01 +02:00
Jonas Platte
71686ce8a4
state-res: Re-export RoomVersion from crate root
2021-05-08 01:34:27 +02:00
Jonas Platte
10fd4675bb
ruma: Re-export state-res
2021-05-08 01:03:49 +02:00
Jonas Platte
74562f20bd
ruma: Including client in full feature
2021-05-08 01:03:21 +02:00
Jonas Platte
9263d0c949
state-res: Switch from log to tracing
2021-05-08 01:02:42 +02:00
Jonas Platte
410b4aed25
state-res: Upgrade rand and update usage
2021-05-08 00:57:43 +02:00
Jonas Platte
f58462a002
state-res: Depend on ruma-* subcrates instead of ruma
2021-05-08 00:52:50 +02:00
Jonas Platte
ee39f7c28c
events: Add missing dependency feature
2021-05-08 00:44:04 +02:00
Jonas Platte
addc67051e
Integrate state-res and rename to ruma-state-res
2021-05-08 00:39:51 +02:00
Jonas Platte
6609829735
Add 'crates/ruma-state-res/' from commit '56bf45c0235701ac6df56993c327d2f97a499ef9'
...
git-subtree-dir: crates/ruma-state-res
git-subtree-mainline: 719433eb5c41fb5b8099481ce7bb0a37931b260f
git-subtree-split: 56bf45c0235701ac6df56993c327d2f97a499ef9
2021-05-08 00:20:05 +02:00
Jonas Platte
719433eb5c
serde: Add PartialEq implementations for CanonicalJsonValue
2021-05-07 23:39:48 +02:00
Jonas Platte
6d5f198164
serde: Add is_*
methods to CanonicalJsonValue
2021-05-07 23:24:16 +02:00
Jonas Platte
3b6a719b8e
serde: Add as_array_mut and as_object_mut methods to CanonicalJsonValue
2021-05-07 23:20:49 +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
97c3b5cf47
client-api: Add link to spec for r0::uiaa
2021-05-06 17:22:16 +02:00
Jonas Platte
1bf84ab9fb
Remove unused dev-dependencies
2021-05-06 14:45:13 +02:00
Jonas Platte
729fb51d77
Remove allow(clippy::lint) attributes that are no longer necessary
2021-05-06 14:31:52 +02:00
Jonas Platte
1dc72de70e
Remove allow(clippy::inconsistent_struct_constructor)
...
The lint was buggy, but that has now been fixed.
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