pass room id too

This commit is contained in:
David Baker 2017-10-03 17:13:14 +01:00
parent c2c188b699
commit 1e375468de
3 changed files with 6 additions and 4 deletions

View file

@ -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