diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-06 15:10:55 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-06 15:10:55 +0000 |
commit | 4317c8e5835f0c15bf882f737d3e3c2a5b85f73f (patch) | |
tree | 4f1b822a5122529b69f54d7ed7f8b88d772171a5 /synapse/handlers/federation.py | |
parent | Fix a couple more storage tests (diff) | |
download | synapse-4317c8e5835f0c15bf882f737d3e3c2a5b85f73f.tar.xz |
Implement new replace_state and changed prev_state
`prev_state` is now a list of previous state ids, similiar to prev_events. `replace_state` now points to what we think was replaced.
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 1464a60937..513ec9a5e3 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -313,9 +313,7 @@ class FederationHandler(BaseHandler): state_key=user_id, ) - snapshot = yield self.store.snapshot_room( - event.room_id, event.user_id, - ) + snapshot = yield self.store.snapshot_room(event) snapshot.fill_out_prev_events(event) yield self.state_handler.annotate_state_groups(event) |