summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-10-03 17:13:14 +0100
committerDavid Baker <dave@matrix.org>2017-10-03 17:13:14 +0100
commit1e375468de914fdefc7c0b4b65217c4ec95784a4 (patch)
tree1c3809a25ad26eefb077dc68af0fe77302232183 /synapse/handlers/room_member.py
parentFederation was passing strings anyway (diff)
downloadsynapse-1e375468de914fdefc7c0b4b65217c4ec95784a4.tar.xz
pass room id too
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room_member.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index a33a8ad42b..37985fa1f9 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -224,7 +224,9 @@ class RoomMemberHandler(BaseHandler):
                     )
                     block_invite = True
 
-                if not self.spam_checker.user_may_invite(requester.user.to_string()):
+                if not self.spam_checker.user_may_invite(
+                    requester.user.to_string(), room_id,
+                ):
                     logger.info("Blocking invite due to spam checker")
                     block_invite = True