Fix bug related to to_device() positional arguments

This commit is contained in:
Astra Logical 2026-07-23 10:50:22 -04:00
parent 23ca556d87
commit 4326dac96c

View file

@ -157,9 +157,11 @@ async def on_to_device(client: AsyncClient, event):
} }
resp = await client.to_device( resp = await client.to_device(
"m.key.verification.ready", "m.key.verification.ready",
ready_content, {
event.sender, event.sender: {
from_device, from_device: ready_content
}
},
) )
if isinstance(resp, ToDeviceError): if isinstance(resp, ToDeviceError):
print(f"Failed to send verification ready: {resp}") print(f"Failed to send verification ready: {resp}")