Fix class name

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

View file

@ -10,7 +10,7 @@ from keycloak.exceptions import KeycloakError
from mautrix.client import Client from mautrix.client import Client
from mautrix.crypto import OlmMachine from mautrix.crypto import OlmMachine
from mautrix.crypto.account import Account from mautrix.crypto.account import OlmAccount
from mautrix.crypto.store import MemoryCryptoStore from mautrix.crypto.store import MemoryCryptoStore
from mautrix.client.state_store import MemoryStateStore from mautrix.client.state_store import MemoryStateStore
from mautrix.types import ( from mautrix.types import (
@ -434,7 +434,7 @@ async def main():
account = await client.crypto.store.get_account(client.mxid) account = await client.crypto.store.get_account(client.mxid)
if not account: if not account:
log.info("Creating new Olm account...") log.info("Creating new Olm account...")
account = Account.generate() account = OlmAccount.generate()
await client.crypto.store.put_account(account) await client.crypto.store.put_account(account)
# Register Event Handlers # Register Event Handlers