Skip to content

Commit

Permalink
In the initial sync api, return the inviter for rooms in the 'invited…
Browse files Browse the repository at this point in the history
…' state
  • Loading branch information
erikjohnston committed Aug 21, 2014
1 parent c6950b1 commit 3d1cae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ def snapshot_all_rooms(self, user_id=None, pagin_config=None,
"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:
Expand Down

0 comments on commit 3d1cae0

Please sign in to comment.