Check sender signed event

This commit is contained in:
Erik Johnston 2016-07-14 16:49:37 +01:00
parent 2cb758ac75
commit ebdafd8114
3 changed files with 12 additions and 6 deletions

View file

@ -379,7 +379,7 @@ class StateHandler(object):
try:
# FIXME: hs.get_auth() is bad style, but we need to do it to
# get around circular deps.
self.hs.get_auth().check(event, auth_events)
self.hs.get_auth().check(event, auth_events, do_sig_check=False)
prev_event = event
except AuthError:
return prev_event
@ -391,7 +391,7 @@ class StateHandler(object):
try:
# FIXME: hs.get_auth() is bad style, but we need to do it to
# get around circular deps.
self.hs.get_auth().check(event, auth_events)
self.hs.get_auth().check(event, auth_events, do_sig_check=False)
return event
except AuthError:
pass