update to work with newer code, and fix formatting

This commit is contained in:
Hubert Chathi 2019-10-22 21:44:58 -04:00
parent 41ad35b523
commit 1fabf82d50
3 changed files with 7 additions and 6 deletions

View file

@ -214,7 +214,7 @@ class DeviceWorkerStore(SQLBaseStore):
# figure out which cross-signing keys were changed by intersecting the
# update list with the master/self-signing key by user maps
cross_signing_keys_by_user = {}
for user_id, device_id, stream in updates:
for user_id, device_id, stream, _opentracing_context in updates:
if device_id == master_key_by_user.get(user_id, {}).get("pubkey", None):
result = cross_signing_keys_by_user.setdefault(user_id, {})
result["master_key"] = master_key_by_user[user_id]["key_info"]