Timo Kösters
d970501c85
state-res: Revert calculating the auth chain in ruma
...
In a previous commit I moved the auth chain calculation code to ruma
because I thought I could optimize it by only taking auth chains from
conflicted events instead of all events. It turned out that was wrong
and now I removed that algorithm again (the full auth chains are now
passed in as an argument to state_res::resolve again).
2021-08-10 15:22:47 +02:00
Adam
63411165da
Move RoomName
to ruma-identifiers
and use it more
2021-08-10 15:22:47 +02:00
Timo Kösters
57266bf284
client-api: Add serde(default) for generate_blurhash
2021-08-10 15:22:47 +02:00
Timo Kösters
17afbabd92
state-res: Calculate auth_events and fix bug when calculating common events
2021-08-10 15:22:46 +02:00
Devin Ragotzy
b8c54d8e2b
state-res: Pass fetch_event closure as owned F not &F
2021-08-10 15:22:46 +02:00
gnieto
5085f3b8fe
client-api: Fix inconsistent types on RoomEventFilter
...
`rooms` and `not_rooms` contained `String` and `RoomId` respectively and
the types have been change to use always `RoomId` as it's more concrete
and is more consistent with the other fields (like `senders` and
`not_senders`).
2021-08-10 15:22:46 +02:00
Jonas Platte
8f4f7d8060
identifiers: Fix unused import without serde feature
2021-08-10 15:22:46 +02:00
Devin Ragotzy
245fe4deea
Enable clippy exhaustive_enums lint workspace-wide
2021-08-10 15:22:46 +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
ab3d48b576
client-api: Make all pub enums non_exhaustive
2021-08-10 15:22:26 +02:00
Devin Ragotzy
1489b5e1f1
federation/push: Make all pub enums non_exhaustive
2021-08-10 15:22:26 +02:00
Devin Ragotzy
c55dab7122
misc-errors: Allow or make error enums non_exhaustive
2021-08-10 15:22:26 +02:00
Devin Ragotzy
fd310e5b6e
identifiers: Make RoomVersionId non_exhaustive
2021-08-10 15:22:26 +02:00
Devin Ragotzy
dc7e0091f6
state-res: Make some room_version enums non_exhaustive
2021-08-10 15:22:26 +02:00
Devin Ragotzy
a4e6cc7c42
state-res: Use closure to fetch unknown events during state-res
...
state-res: Remove event_map arg from all functions
state-res: Remove get_or_load_event helper func and fix resolve docs
2021-08-10 15:22:26 +02:00
Devin Ragotzy
96567a295e
signatures: Fix canonical json functions to now return Result
...
signatures: Fix canonical json functions to now return Result
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
Devin Ragotzy
74b6a4c9d8
common: 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
Adam
2577225ba5
Add client secret and session ID types
2021-08-10 15:22:24 +02:00
Jonas Platte
ef96b0f381
Add missing Debug implementations
2021-08-10 15:22:04 +02:00
Jonas Platte
0f1c52aaab
Update changelogs
2021-08-10 15:21:47 +02:00
Jonas Platte
cff68ad05a
api: Update changelog
2021-08-10 12:50:13 +02:00
Jonas Platte
99ab5f80c0
Release ruma-client-api 0.11.2
2021-08-10 12:48:21 +02:00
Jonas Platte
f83849f942
Release ruma-api 0.17.2
...
This is the same as the previously-released ruma-api 0.18.0; releasing
it with that version number was an error and it has been yanked.
2021-08-10 12:42:26 +02:00
Jonas Platte
70b7240be5
Release ruma-client-api 0.11.1
2021-08-10 12:39:26 +02:00
Jonas Platte
65195cad0d
Release ruma-api 0.18.0
2021-08-10 12:38:12 +02:00
Jonas Platte
4e68509faf
client-api: Work around another Element bug
2021-08-10 12:31:08 +02:00
Jonas Platte
565793a37e
events: Add StaticEventContent trait
2021-08-10 01:26:20 +02:00
Jonas Platte
40d3b552da
Release ruma-serde 0.4.2
2021-08-09 19:43:40 +02:00
Jonas Platte
fdf7af442c
serde: Make Raw deserialization methods more general
2021-08-09 19:34:50 +02:00
Jonas Platte
165729fe71
client-api: Clean up changelog
2021-08-05 21:06:12 +02:00
Adam Blanchet
13af2e235d
client-api: Implement reasons for leaving a room
2021-08-05 21:04:14 +02:00
Jonas Platte
696c9fba4e
api-macros: Move ruma_api! trait impl generation into derive macros
2021-08-05 21:00:43 +02:00
Jonas Platte
020da913de
Remove extraneous newlines
2021-08-05 13:29:36 +02:00
Jonas Platte
c6c89596bb
serde: Allow specifying full paths in incoming_derive
2021-08-05 13:29:36 +02:00
Adam
e3427ba5d0
Update expected stderr on tests for Rust 1.54
2021-08-02 19:46:01 +00:00
Jonas Platte
2bd2d18db9
Release ruma-events 0.23.3
2021-07-26 15:06:13 +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
9a24f9edbd
Silence Clippy lint for Outgoing derive test
2021-07-20 14:21:19 +02:00
Jonas Platte
010e64c110
client-api: Fix module ordering
2021-07-20 12:39:14 +02:00
Kurt Roeckx
4985b9bddb
client-api: Export aliases
2021-07-11 12:12:12 +02:00
Jonas Platte
9b2602649f
Stop special-casing zero fields in macro code
2021-07-09 15:10:22 +02:00
Jonas Platte
a59c43321f
api-macros: Refactor unique_lifetimes_to_tokens
2021-07-07 16:14:41 +02:00