diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-23 17:08:15 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-23 17:08:15 +0000 |
commit | 85d36b62c4c2f3fbeb1415cf43df1383830effe2 (patch) | |
tree | a372b626ef0f20804a20d9f9c940cc96f9c1a239 /synapse/handlers/federation.py | |
parent | Merge pull request #6844 from matrix-org/uhoreg/cross_signing_fix_device_fed (diff) | |
parent | Fix detecting unknown devices from remote encrypted events. (#6848) (diff) | |
download | synapse-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.py | 2 |
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( |