This commit is contained in:
Astra Logical 2026-07-23 13:50:23 -04:00
parent 5cd3680295
commit f414f5a4c4

View file

@ -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)