summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-04 18:02:48 +0100
committerErik Johnston <erik@matrix.org>2016-04-04 18:02:48 +0100
commit0c53d750e7145f57ed97c544efdb846cc9e37b67 (patch)
tree1a001c069a1e4f6351c2cd486025d3c4c2536d8d /synapse/handlers/room_member.py
parentAdd upgrade path, rename table (diff)
downloadsynapse-0c53d750e7145f57ed97c544efdb846cc9e37b67.tar.xz
Docs and indents
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r--synapse/handlers/room_member.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 98e346d48e..f1c3e90ecd 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -400,7 +400,10 @@ class RoomMemberHandler(BaseHandler):
 
     @defer.inlineCallbacks
     def get_inviter(self, user_id, room_id):
-        invite = yield self.store.get_inviter(user_id=user_id, room_id=room_id)
+        invite = yield self.store.get_invite_for_user_in_room(
+            user_id=user_id,
+            room_id=room_id,
+        )
         if invite:
             defer.returnValue(UserID.from_string(invite.sender))