Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use the proper response form.
  • Loading branch information
clokep committed May 5, 2023
commit 6bf1227e6a04a577154b3a203bf778b3cb17e8c0
6 changes: 3 additions & 3 deletions synapse/handlers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ async def on_federation_query_user_devices(self, user_id: str) -> JsonDict:
# Filter the database results to only those devices that the appservice has
# *not* responded with.
devices = [d for d in devices if d["device_id"] not in appservice_devices]
# Add a slimmed down appservice response.
# Append the appservice response by wrapping each result in another dictionary.
devices.extend(
{"device_id": device["device_id"], "keys": device["keys"]}
for device in appservice_devices.values()
{"device_id": device_id, "keys": device}
for device_id, device in appservice_devices.items()
)

# TODO Handle cross-signing keys.
Expand Down