diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-11-10 19:02:19 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-11-10 19:02:19 +0000 |
commit | 269f80bf8ecc4a89c2bb71f0872893bb53a252ca (patch) | |
tree | 5fd5bae78cabeec6604ffa6b0c0d76ac81774b8a /synapse/handlers/message.py | |
parent | Initial (empty) test that room initialSync at least returns 200 OK (diff) | |
download | synapse-269f80bf8ecc4a89c2bb71f0872893bb53a252ca.tar.xz |
Have room initialSync return the room's room_id
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 72894869ea..bb1290fd05 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -331,4 +331,15 @@ class MessageHandler(BaseHandler): defer.returnValue(ret) + @defer.inlineCallbacks + def snapshot_room(self, user_id, room_id, pagin_config=None, + feedback=False): + yield self.auth.check_joined_room(room_id, user_id) + defer.returnValue({ + #"membership": membership, + "room_id": room_id, + #"messages": messages, + #"state": state, + #"presence": presence, + }) |