31 Commits

Author SHA1 Message Date
Devin Ragotzy
f45cb2963a Fix formatting and grouping of state_event items 2020-12-11 18:04:41 -08:00
Devin Ragotzy
471ae2cbb4 Make from_id_value take 2 args not tuple 2020-12-11 18:04:41 -08:00
Devin Ragotzy
d5870c6cc0 Fix serialization test adding event_id field to the JSON string output 2020-12-11 18:04:41 -08:00
Devin Ragotzy
d0d2f77998 Add from_id_value associated method to create a StateEvent from id+json 2020-12-11 18:04:41 -08:00
Devin Ragotzy
5e7f60e5d9 Add gen-eventid feature to generate EventId every deserialize
So we do not rely on any found EventId, this makes all the tests break.
2020-12-11 18:04:41 -08:00
Devin Ragotzy
6661771b31 StateEvent now holds EventId in variant + custom ser/de 2020-12-11 18:04:41 -08:00
Devin Ragotzy
ac9282add6 Allow get_power_level_for_sender to soft fail when eventId not found
Hardcode RoomVersion6 into the eventId hashing
2020-12-11 18:04:41 -08:00
Devin Ragotzy
26b0f738a5 Fix unstable-pre-spec for federation membership join 2020-12-11 18:04:41 -08:00
Devin Ragotzy
ee6aa35612 StateEvent's event_id method must return owned EventId 2020-12-11 18:04:41 -08:00
Timo Kösters
369703a6fa Expect all state events to have a state key 2020-12-11 18:04:41 -08:00
Timo Kösters
ad4fb6420a Various improvements 2020-12-11 18:04:41 -08:00
Timo Kösters
f587b88a60 Fixes 2020-12-11 18:04:41 -08:00
Devin Ragotzy
63be0b550f Add room version check to event auth and room_version to StateEvent 2020-08-22 06:36:22 -04:00
Devin Ragotzy
4e9b428c0d Add depth getter to StateEvent 2020-08-18 16:06:18 -04:00
Devin Ragotzy
bafc2016c6 Add origin getter to StateEvent 2020-08-18 16:03:24 -04:00
Devin Ragotzy
8650f8fea7 Add hashes getter to StateEvent 2020-08-18 16:00:13 -04:00
Devin Ragotzy
85693cc30a Update signatures since Cargo.lock seemed to be using cached ruma 2020-08-14 20:29:15 -04:00
Devin Ragotzy
6e0edce35a Continue to update to keep compatibility with conduit 2020-08-13 01:15:57 -04:00
Devin Ragotzy
5f77bc11a2 Update ruma with conduit, make event_id return EventId not Option<> 2020-08-12 18:24:58 -04:00
Devin Ragotzy
5a45970266 Update how PDU works this needs to be fixed TODO
I have just added a hack to make the Pdu deserialize correctly in the
tests this has to be fixed!!
2020-08-11 23:53:33 -04:00
Devin Ragotzy
1509ef45c1 Update ruma depricated and use Option<String> for state_key 2020-08-11 23:40:22 -04:00
Devin Ragotzy
9a388fc813 Bump ruma to same rev as conduit federation-p2p branch 2020-08-11 23:22:20 -04:00
Devin Ragotzy
d8fb5ca112 Add benchmark for longer auth chain and Error type
This required that the code being run in the benchmark be tested to
verify it works correctly. Now work can begin cleaning up and optimizing
state-res.
2020-07-27 00:09:21 -04:00
Devin Ragotzy
29d86ebf3c Fix separate ignoring missing ids and auth_check details 2020-07-24 23:14:30 -04:00
Devin R
106cab46bc lexi_topo_sort needs to return a neg power_level to sort properly
All tests pass!!! Changed println! to logger calls.
2020-07-23 09:38:47 -04:00
Devin R
a0db51b3bd Room topic reset test fails 2020-07-23 01:12:25 -04:00
Devin R
0c21f38cb1 Fixing failing first failing state res test
lexicographical_topological_sort test passes. Chasing bug somewhere in
resolve.
2020-07-20 22:02:29 -04:00
Devin R
954fe5e51e Done transcribing all logic is filled in no more unimplemented! 2020-07-19 08:42:45 -04:00
Devin R
d3c3c95985 Use ruma's PDU events not the sent events 2020-07-18 16:14:57 -04:00
Devin R
c043b10d64 Sketch is mostly finalized now fill in with code 2020-07-18 14:01:22 -04:00
Devin R
61f485ea3f Initial commit sketching out ideas 2020-07-17 10:07:03 -04:00