summary refs log tree commit diff
path: root/synapse/event_auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-01-29 10:07:13 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-01-29 10:07:13 +0000
commitc7f2eaf4f40a054468de89325efec985f506fcc9 (patch)
tree2559a8b0072faf1e6bb98c0ea1469b5ec9d66385 /synapse/event_auth.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentFix typo in upserts code (#4505) (diff)
downloadsynapse-c7f2eaf4f40a054468de89325efec985f506fcc9.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/event_auth.py')
-rw-r--r--synapse/event_auth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py

index c81d8e6729..9adedbbb02 100644 --- a/synapse/event_auth.py +++ b/synapse/event_auth.py
@@ -27,10 +27,11 @@ from synapse.types import UserID, get_domain_from_id logger = logging.getLogger(__name__) -def check(event, auth_events, do_sig_check=True, do_size_check=True): +def check(room_version, event, auth_events, do_sig_check=True, do_size_check=True): """ Checks if this event is correctly authed. Args: + room_version (str): the version of the room event: the event being checked. auth_events (dict: event-key -> event): the existing room state.