Check sender_key matches on inbound encrypted events. (#6850)

If they don't then the device lists are probably out of sync.
This commit is contained in:
Erik Johnston 2020-02-05 14:02:39 +00:00 committed by GitHub
parent 60d0672426
commit a58860e480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 67 additions and 14 deletions

View file

@ -598,7 +598,13 @@ class DeviceListUpdater(object):
# happens if we've missed updates.
resync = yield self._need_to_do_resync(user_id, pending_updates)
logger.debug("Need to re-sync devices for %r? %r", user_id, resync)
if logger.isEnabledFor(logging.INFO):
logger.info(
"Received device list update for %s, requiring resync: %s. Devices: %s",
user_id,
resync,
", ".join(u[0] for u in pending_updates),
)
if resync:
yield self.user_device_resync(user_id)