Pass room_version into add_hashes_and_signatures

This commit is contained in:
Richard van der Hoff 2020-01-29 17:40:33 +00:00
parent 54f3f369bd
commit 2a81393a4b
3 changed files with 21 additions and 10 deletions

View file

@ -255,7 +255,7 @@ def create_local_event_from_event_dict(
event_dict.setdefault("signatures", {})
add_hashes_and_signatures(event_dict, hostname, signing_key)
add_hashes_and_signatures(room_version, event_dict, hostname, signing_key)
return event_type_from_format_version(format_version)(
event_dict, internal_metadata_dict=internal_metadata_dict
)