Fix bug related to to_device() positional arguments
This commit is contained in:
parent
23ca556d87
commit
4326dac96c
1 changed files with 5 additions and 3 deletions
|
|
@ -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}")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue