summary refs log tree commit diff
path: root/synapse/crypto/event_signing.py
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-07-18 12:13:43 -0400
committerPatrick Cloke <patrickc@matrix.org>2023-07-18 12:13:43 -0400
commitc50cb6e3915f52dffb791de87e1493434970a5c0 (patch)
treea2835159fbf9d9aea7f87113c64d06cdeaa9b91b /synapse/crypto/event_signing.py
parentLinting. (diff)
downloadsynapse-c50cb6e3915f52dffb791de87e1493434970a5c0.tar.xz
Add note
Diffstat (limited to '')
-rw-r--r--synapse/crypto/event_signing.py3
1 files changed, 3 insertions, 0 deletions
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(