diff --git a/matrix_keycloak_bot.py b/matrix_keycloak_bot.py index e31117b..7a5f868 100644 --- a/matrix_keycloak_bot.py +++ b/matrix_keycloak_bot.py @@ -157,9 +157,11 @@ async def on_to_device(client: AsyncClient, event): } resp = await client.to_device( "m.key.verification.ready", - ready_content, - event.sender, - from_device, + { + event.sender: { + from_device: ready_content + } + }, ) if isinstance(resp, ToDeviceError): print(f"Failed to send verification ready: {resp}")