summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-23 17:08:15 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-23 17:08:15 +0000
commit85d36b62c4c2f3fbeb1415cf43df1383830effe2 (patch)
treea372b626ef0f20804a20d9f9c940cc96f9c1a239 /synapse/handlers/federation.py
parentMerge pull request #6844 from matrix-org/uhoreg/cross_signing_fix_device_fed (diff)
parentFix detecting unknown devices from remote encrypted events. (#6848) (diff)
downloadsynapse-85d36b62c4c2f3fbeb1415cf43df1383830effe2.tar.xz
Fix detecting unknown devices from remote encrypted events. (#6848)
* commit '6475382d8':
  Fix detecting unknown devices from remote encrypted events. (#6848)
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index a8cbb2f2c4..28ec48dc70 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -756,7 +756,7 @@ class FederationHandler(BaseHandler):
 
         # For encrypted messages we check that we know about the sending device,
         # if we don't then we mark the device cache for that user as stale.
-        if event.type == EventTypes.Encryption:
+        if event.type == EventTypes.Encrypted:
             device_id = event.content.get("device_id")
             if device_id is not None:
                 cached_devices = await self.store.get_cached_devices_for_user(