Jonas Platte
4d0064330a
state-res: Inline get_named_level
2021-09-13 19:02:34 +02:00
Jonas Platte
8b4d019861
state-res: More fetch_state deduplication
2021-09-13 19:02:34 +02:00
Jonas Platte
f9f4106757
state-res: Don't call .to_string() for server name comparison
2021-09-13 19:02:34 +02:00
Jonas Platte
7f4eba5a5c
state-res: Inline get_user_power_level
2021-09-13 19:02:34 +02:00
Jonas Platte
4259e9ec0c
state-res: Deduplicate a few redundant function calls
2021-09-13 19:02:34 +02:00
Jonas Platte
f00b4a0984
state-res: Remove fetch_state parameter from a few more functions
2021-09-13 19:02:34 +02:00
Jonas Platte
4bba58d781
state-res: Move more fetch_state calls into auth_check (from sub-functions)
2021-09-13 19:02:34 +02:00
Jonas Platte
a6377067cd
state-res: Don't turn Int into i64 internally
2021-09-13 19:02:34 +02:00
Jonas Platte
b0d475eac3
state-res: Inline can_send_invite
2021-09-13 19:02:34 +02:00
Jonas Platte
983ce8451f
state-res: Inline check_event_sender_in_room
2021-09-13 19:02:34 +02:00
Jonas Platte
359a0cb125
state-res: Don't pass fetch_state to valid_membership_change
2021-09-13 19:02:34 +02:00
Jonas Platte
0a93780e83
state-res: Move tests/utils.rs to src/test_utils.rs
2021-09-13 19:02:34 +02:00
Jonas Platte
6b1f027b88
state-res: Raise an error (don't panic) on invalid power-levels event
2021-09-13 19:02:34 +02:00
Jonas Platte
40f99cb364
state-res: Update verify_third_party_invite signature
...
Use &UserId instead of &str.
2021-09-13 19:02:34 +02:00
Jonas Platte
76fa15f248
state-res: Rename Event::kind to event_type
2021-09-13 19:02:33 +02:00
Jonas Platte
a56814a4f4
state-res: Fix up doc comments
2021-09-13 19:02:33 +02:00
Jonas Platte
4bea59caef
state-res: Remove StateResolution type
...
… making its associated functions free instead.
2021-09-13 19:02:33 +02:00
Jonas Platte
cc9336e444
state-res: Take ownership of events to sort in reverse_topological_power_sort
...
Avoids clones.
2021-09-13 19:02:33 +02:00
Jonas Platte
ebd812bcda
Add missing semicolons
2021-09-13 19:02:33 +02:00
Jonas Platte
09acfb1b0b
Release ruma-state-res 0.4.1
2021-09-01 21:55:04 +02:00
Jonas Platte
815fd19a33
state-res: Remove pointless shifting around of Vec elements
2021-08-31 20:40:36 +02:00
Jonas Platte
9c5b2e3d8c
state-res: Only depend on maplit for tests / benches
2021-08-31 19:19:17 +02:00
Jonas Platte
a3707b1a3a
state-res: Remove pointless .unwrap()
2021-08-31 19:02:03 +02:00
Jonas Platte
50f0327b0b
Release ruma-state-res 0.4.0
2021-08-26 12:33:47 +02:00
Devin Ragotzy
886c33eac3
state-res: Use fetch state closure instead of auth_chain
2021-08-26 12:29:33 +02:00
Jonas Platte
b85e452aec
Release ruma-events 0.24.5
2021-08-21 15:58:54 +02:00
Jonas Platte
90683f0faa
Release ruma-events 0.24.4
2021-08-16 23:12:35 +02:00
Jonas Platte
7e6fcab676
Release ruma-events 0.24.3
2021-08-13 17:16:08 +02:00
Jonas Platte
e396092ac0
Release ruma-events 0.24.2
2021-08-11 21:08:46 +02:00
Jonas Platte
f4d60f1ecb
Release ruma-events 0.24.1
2021-08-11 20:31:23 +02:00
Jonas Platte
da5e631640
Release ruma-state-res 0.3.0
2021-08-11 17:56:10 +02:00
Jonas Platte
1c5067a916
Release ruma-events 0.24.0
2021-08-11 17:38:10 +02:00
Jonas Platte
7602570e21
Release ruma-common 0.6.0
2021-08-11 17:24:41 +02:00
Jonas Platte
e6b48fb564
Release ruma-identifiers 0.20.0
2021-08-11 17:16:28 +02:00
Jonas Platte
12ee10b2c6
Release ruma-serde 0.5.0
2021-08-11 17:10:51 +02:00
Jonas Platte
7bed18c358
Disable problematic clippy configuration
2021-08-10 15:48:34 +02:00
Devin Ragotzy
b7d0970335
state-res: Remove dead code and stale comments
2021-08-10 15:22:47 +02:00
Devin Ragotzy
318f3186ad
state-res: Replace unwraps with expect or errors
2021-08-10 15:22:47 +02:00
Devin Ragotzy
01515aea41
state-res: Fix clippy warnings
2021-08-10 15:22:47 +02:00
Timo Kösters
e31b4d5c98
state-res: Add more information to warnings
2021-08-10 15:22:47 +02:00
Timo Kösters
3a0ee7740f
state-res: Change BTreeMap/Set to HashMap/Set
2021-08-10 15:22:47 +02:00
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
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
Devin Ragotzy
c55dab7122
misc-errors: Allow or make error enums 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
Jonas Platte
40d3b552da
Release ruma-serde 0.4.2
2021-08-09 19:43:40 +02:00
Jonas Platte
020da913de
Remove extraneous newlines
2021-08-05 13:29:36 +02:00
Jonas Platte
2bd2d18db9
Release ruma-events 0.23.3
2021-07-26 15:06:13 +02:00