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/profile.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/profile.py')
-rw-r--r-- | synapse/handlers/profile.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index 4cd0a06093..e47814483a 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -17,7 +17,6 @@ from twisted.internet import defer from synapse.api.errors import SynapseError, AuthError, CodeMessageException from synapse.api.constants import Membership -from synapse.api.events.room import RoomMemberEvent from ._base import BaseHandler @@ -196,10 +195,7 @@ class ProfileHandler(BaseHandler): ) for j in joins: - snapshot = yield self.store.snapshot_room( - j.room_id, j.state_key, RoomMemberEvent.TYPE, - j.state_key - ) + snapshot = yield self.store.snapshot_room(j) content = { "membership": j.content["membership"], |