Commit Graph

75 Commits (36e144091b3be995754f7100a9c5322b224f2692)

Author SHA1 Message Date
Erik Johnston 2674aeb96a Factor out ExpiringCache from StateHandler 10 years ago
Erik Johnston 8c652a2b5f When we see a difference in current state, actually use state conflict resolution algorithm 10 years ago
Erik Johnston f8abbae99f Remove unnecessary logging 10 years ago
Erik Johnston 2b042ad67f Oops, we do want to defer.return regardless of whether we are caching or not 10 years ago
Erik Johnston d19e2ed02f Move construction of object within if block 10 years ago
Erik Johnston d94f682a4c During room intial sync, only calculate current state once. 10 years ago
Erik Johnston 5bf318e9a6 Bug fixes. 10 years ago
Erik Johnston b4886264a3 Bugfix cache layer 10 years ago
Erik Johnston c4e3029d55 Add cache layer to state group resolution 10 years ago
Erik Johnston 650e32d455 Change context.auth_events to what the auth_events would be bases on context.current_state, rather than based on the auth_events from the event. 10 years ago
Erik Johnston f275ba49bb Fix state resolution to remember join_rules is a type of auth event. 10 years ago
Erik Johnston 7a1e881665 Remove debug logging 10 years ago
Erik Johnston 3d7026e709 Add a slightly more helpful comment 10 years ago
Erik Johnston 7a9f6f083e Remove commented line 10 years ago
Erik Johnston 76d7fd39cd Style changes. 10 years ago
Erik Johnston a70a801184 Fix bug where we superfluously asked for current state. Change API of /query_auth/ so that we don't duplicate events in the response. 10 years ago
Erik Johnston 73dd81ca62 fix pyflakes 10 years ago
Erik Johnston b390bf39f2 Remove unused function. Add comment. 10 years ago
Erik Johnston 6dcade97be Implement new state resolution algorithm 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Erik Johnston 52f99243ab Use is_outlier() so that we don't get AttributeError 10 years ago
Erik Johnston 23da4a4051 Fix typo where we thought a list was a dict 10 years ago
Mark Haines c3eae8a88c Construct the EventContext in the state handler rather than constructing one and then immediately calling state_handler.annotate_context_with_state 10 years ago
Mark Haines 8b8beba194 Remove annotate_event_with_state as nothing was using it. Update state tests to call annotate_context_with_state 10 years ago
Erik Johnston 8133cdcc88 Better english in docstrings are helpful. 10 years ago
Erik Johnston 4afac88390 Add basic docstring to annotate_context_with_state 10 years ago
Erik Johnston 3c77d13aa5 Kill off synapse.api.events.* 10 years ago
Erik Johnston 0b04369238 Fix public room joining by making sure replaces_state never points to itself. 10 years ago
Erik Johnston 8cdebce470 Fix redactions. Fix 'age' key 10 years ago
Erik Johnston 95aa903ffa Try and figure out how and why signatures are being changed. 10 years ago
Erik Johnston 5eca288d28 Fix joining from an invite 10 years ago
Erik Johnston 609c31e8df More bug fixes 10 years ago
Erik Johnston ee3df06183 More bug fixes 10 years ago
Erik Johnston d044121168 Various typos and bug fixes. 10 years ago
Erik Johnston 6630e1b579 Start making more things use EventContext rather than event.* 10 years ago
Erik Johnston 5d7c9ab789 Begin converting things to use the new Event structure 10 years ago
Erik Johnston 3598c11c8d Correctly handle the case where we get an event for an unknown room, which turns out we are actually in 10 years ago
Erik Johnston 997ed151db synapse.state docs. 10 years ago
Erik Johnston 3db2c0d43e Rename annotate_state_groups to annotate_event_with_state 10 years ago
Erik Johnston 092979b8cc Fix bugs which broke federation due to changes in function signatures. 10 years ago
Erik Johnston 5ff0bfb81d Fix bug where we /always/ created a new state group 10 years ago
Erik Johnston 46de65cab9 Don't query the DB for user power levels 10 years ago
Erik Johnston 4317c8e583 Implement new replace_state and changed prev_state 10 years ago
Erik Johnston 96c001e668 Fix auth checks to all use the given old_event_state 10 years ago
Erik Johnston aa76bf39ab Remove unused imports 10 years ago
Erik Johnston 9024a19658 Remove dead code. 10 years ago
Erik Johnston 2f39dc19a2 Remove more references to dead PDU tables 10 years ago
Erik Johnston 946d02536b Remove unused functions. 10 years ago
Erik Johnston d84f5b30b8 old_state_events should be a dict not list 10 years ago
Erik Johnston 12ce441e67 Convert event ids to be of the form :example.com 10 years ago