13 Commits

Author SHA1 Message Date
Devin Ragotzy
f62df4d9ae Remove StateStore trait and clean up imports in event_auth 2021-04-29 15:10:17 -04:00
Jonas Platte
b7d465fabe Upgrade ruma 2021-04-05 15:57:27 -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
f4772e0fcb Make auth_events arg for auth_check be a ref, cleanup 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
dd2a115b94 Clean up tests, move setup into its own file 2021-01-05 15:43:55 -05:00
Devin Ragotzy
ac4ab7ac06 Update tests to new StateEvent using Pdu::RoomV3Pdu 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
394d26744a Use own Error type for all errors 2020-08-27 20:03:19 -04:00
Devin Ragotzy
e8acae05ff Add test testing conduits event sorting logic
This could possibly be turned into another public function for exporting.
A list of ruma::Pdu (events) and another list of ruma::Pdu (auth_events)
and returns the sorted list of events.
2020-08-26 07:10:47 -04:00