diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-21 15:07:08 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-21 15:07:08 +0100 |
commit | 3d1cae0e7954085bdc1dd1fca6a4ea4986e3d6f5 (patch) | |
tree | 515ffad86be13cce9fc620ac400994f6c5ba1b3c /synapse/handlers/room.py | |
parent | Return the current state in the initial sync api. (diff) | |
download | synapse-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.py | 4 |
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: |