summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 7e34b4a6fc..a94cfaec2a 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -530,7 +530,7 @@ class RoomMemberHandler(BaseHandler):
 
         snapshot = yield self.store.snapshot_room(
             event.room_id, event.user_id,
-            RoomMemberEvent.TYPE, event.target_user_id
+            RoomMemberEvent.TYPE, target_user_id
         )
         ## TODO(markjh): get prev state from snapshot.
         prev_state = yield self.store.get_room_member(