summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-21 15:07:08 +0100
committerErik Johnston <erik@matrix.org>2014-08-21 15:07:08 +0100
commit3d1cae0e7954085bdc1dd1fca6a4ea4986e3d6f5 (patch)
tree515ffad86be13cce9fc620ac400994f6c5ba1b3c /synapse/handlers/room.py
parentReturn the current state in the initial sync api. (diff)
downloadsynapse-3d1cae0e7954085bdc1dd1fca6a4ea4986e3d6f5.tar.xz
In the initial sync api, return the inviter for rooms in the 'invited' state
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 91415afbba..d9809bd6de 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -264,6 +264,10 @@ class MessageHandler(BaseHandler):
                 "room_id": event.room_id,
                 "membership": event.membership,
             }
+
+            if event.membership == Membership.INVITE:
+                d["inviter"] = event.user_id
+
             ret.append(d)
 
             if event.membership != Membership.JOIN: