From c50cb6e3915f52dffb791de87e1493434970a5c0 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 18 Jul 2023 12:13:43 -0400 Subject: Add note --- synapse/crypto/event_signing.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'synapse/crypto/event_signing.py') diff --git a/synapse/crypto/event_signing.py b/synapse/crypto/event_signing.py index ef6c763433..34432891da 100644 --- a/synapse/crypto/event_signing.py +++ b/synapse/crypto/event_signing.py @@ -96,6 +96,9 @@ def check_event_content_hash( # Check the content hash of the LPDU, if this was sent via a hub. if event.room_version.linearized_matrix and event.hub_server: + # TODO(LM) I don't think this works since _check_dict_hash always strips + # all hashes (via compute_content_hash)? + # hashes must be a dictionary to have passed _check_dict_hash above. lpdu_hashes = hashes.get("lpdu") return _check_dict_hash( -- cgit 1.4.1