summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-11-10 19:02:19 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-11-10 19:02:19 +0000
commit269f80bf8ecc4a89c2bb71f0872893bb53a252ca (patch)
tree5fd5bae78cabeec6604ffa6b0c0d76ac81774b8a /synapse/handlers
parentInitial (empty) test that room initialSync at least returns 200 OK (diff)
downloadsynapse-269f80bf8ecc4a89c2bb71f0872893bb53a252ca.tar.xz
Have room initialSync return the room's room_id
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py11
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,
+        })