From 4326dac96ca03b46474b4a7e4f22f2eae1265150 Mon Sep 17 00:00:00 2001 From: Astra Logical Date: Thu, 23 Jul 2026 10:50:22 -0400 Subject: [PATCH] Fix bug related to to_device() positional arguments --- matrix_keycloak_bot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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}")