32 Commits

Author SHA1 Message Date
Devin Ragotzy
11e8856a91 Fix tests after state_key = String from Option<String> 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
33232f0a63 Disable buggy auth_events check 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
acd829336e If no power_level event default to 0 power_level for user 2020-09-08 16:59:29 -04:00
Devin Ragotzy
8ca1726e98 Remove RedactAllowed enum in favor of bool 2020-09-01 15:14:09 -04:00
Devin Ragotzy
3cc4ae2bf7 Remove the last few synapse-ism using only spec event auth 2020-08-31 14:53:20 -04:00
Devin Ragotzy
1eb89941b7 Rename power_event -> control_event and add more docs 2020-08-31 07:21:30 -04: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
b846aec94a Replace membership auth with timo's logic 2020-08-27 15:46:36 -04:00
Devin Ragotzy
aadccdee64 Fix DM room creator rejoining
Check only the previous event is a RoomCreate event not that one exists
2020-08-27 09:08:52 -04:00
Devin Ragotzy
17958665f6 Update docs in event_auth and add first few event_auth tests 2020-08-26 20:51:39 -04:00
Devin Ragotzy
fbcd26c6d2 All of event_auth follows the spec strictly, all the synapse-isms removed 2020-08-26 20:08:48 -04:00
Devin Ragotzy
025c2df752 Allow join room creator only if create event has no prev_events 2020-08-26 11:04:30 -04:00
Devin Ragotzy
36cec22cf3 Follow spec for is_membership_change_allowed
Add checks for caller in room and remove unspec'ed synapse check leave
-> join with join_rule = invite
2020-08-26 10:45:06 -04: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
ce2d5a0d9b Add license, update readme and add docs for event_auth functions 2020-08-18 13:46:14 -04:00
Devin Ragotzy
d22d83522b Make auth_types_for_event take the ruma types instead of StateEvent 2020-08-14 07:39:30 -04:00
Devin Ragotzy
6e0edce35a Continue to update to keep compatibility with conduit 2020-08-13 01:15:57 -04:00
Devin Ragotzy
484f48dc41 Export all of the event_auth mod 2020-08-12 18:39:33 -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
1509ef45c1 Update ruma depricated and use Option<String> for state_key 2020-08-11 23:40:22 -04:00
Devin Ragotzy
77cbcc7ee2 Clean up logging calls 2020-07-27 17:10:06 -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
a0db51b3bd Room topic reset test fails 2020-07-23 01:12:25 -04:00
Devin R
5842ddf36e Working ban_vs_power_level test, add travis.yml, logging 2020-07-22 23:26:55 -04:00
Devin R
2f443cf41a BUG: follows synapse until get_mainline_depth then it loops forever 2020-07-21 08:55:51 -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