From 0db71275f6f40da7c555754749c7b27a890e9a1c Mon Sep 17 00:00:00 2001 From: Astra Logical Date: Thu, 23 Jul 2026 14:11:25 -0400 Subject: [PATCH] Pass account correctly --- matrix_keycloak_bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix_keycloak_bot.py b/matrix_keycloak_bot.py index cae75bc..b809bc3 100644 --- a/matrix_keycloak_bot.py +++ b/matrix_keycloak_bot.py @@ -429,14 +429,14 @@ async def main(): "device_id": client.device_id }, f) - # Ensure an Olm crypto account exists in the store for this specific mxid BEFORE initializing OlmMachine - account = await crypto_store.get_account(client.mxid) + # Ensure an Olm crypto account exists in the store BEFORE initializing OlmMachine + account = await crypto_store.get_account() if not account: log.info("Creating new Olm account...") account = OlmAccount() - await crypto_store.put_account(account, client.mxid) + await crypto_store.put_account(account) - # Initialize OlmMachine after the account is guaranteed to exist under the correct key + # Initialize OlmMachine after the account is guaranteed to exist client.crypto = OlmMachine(client, crypto_store, state_store) # Register Event Handlers