diff --git a/matrix_keycloak_bot.py b/matrix_keycloak_bot.py index d8f864c..2743e64 100644 --- a/matrix_keycloak_bot.py +++ b/matrix_keycloak_bot.py @@ -430,12 +430,12 @@ async def main(): "device_id": client.device_id }, f) - # Ensure an Olm crypto account exists in the store - account = await client.crypto.store.get_account(client.mxid) + # Ensure an Olm crypto account exists in the store (accessing via crypto_store variable directly) + account = await crypto_store.get_account(client.mxid) if not account: log.info("Creating new Olm account...") account = OlmAccount.generate() - await client.crypto.store.put_account(account) + await crypto_store.put_account(account) # Register Event Handlers client.add_event_handler(EventType.ROOM_MEMBER, on_invite)