Spam checking: add the invitee to user_may_invite

This commit is contained in:
David Baker 2017-10-05 14:02:28 +01:00
parent 44f8e383f3
commit f878e6f8af
3 changed files with 10 additions and 8 deletions

View file

@ -225,7 +225,7 @@ class RoomMemberHandler(BaseHandler):
block_invite = True
if not self.spam_checker.user_may_invite(
requester.user.to_string(), room_id,
requester.user.to_string(), target.to_string(), room_id,
):
logger.info("Blocking invite due to spam checker")
block_invite = True