16 Commits

Author SHA1 Message Date
Devin Ragotzy
a0177669e6 Fix all failing tests because of state_key unwraps 2021-03-26 16:05:12 -04:00
Timo Kösters
1621a491a9
improvement: refactor code and fix a few auth rules 2021-03-25 23:19:20 +01:00
Devin Ragotzy
47b19fdc15 Remove StateStore trait, caller must collect all events needed 2021-01-24 20:44:41 -05:00
Devin Ragotzy
b0ee71e401 Make event_map &mut and take fields in membership_change 2021-01-05 15:43:55 -05:00
Devin Ragotzy
da14be3000 Fix tests to work with PDU event trait 2021-01-05 15:43:55 -05:00
Devin Ragotzy
05a4dd1bf0 Convert state-res to use possible ruma::ServerPdu 2021-01-05 15:43:55 -05:00
Devin Ragotzy
db3f68626d Add constructor from CanonicalJsonObject to StateEvent 2020-12-11 18:04:41 -08:00
Devin Ragotzy
11e8856a91 Fix tests after state_key = String from Option<String> 2020-12-11 18:04:41 -08:00
Timo Kösters
f587b88a60 Fixes 2020-12-11 18:04:41 -08:00
Devin Ragotzy
8dbd9aae0b Add error type, more docs, and conduit sorting test
Not resolve sorting just topo/mainline
2020-08-29 16:33:40 -04:00
Devin Ragotzy
394d26744a Use own Error type for all errors 2020-08-27 20:03:19 -04:00
Devin Ragotzy
43e0f20d3b Remove self param from all StateResolution methods 2020-08-20 17:43:04 -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
8a9f15e01f House keeping, remove &mut self in all methods
Improved perf -7.8220%
2020-07-28 07:09:07 -04:00