Fix class name
This commit is contained in:
parent
0092284140
commit
5cd3680295
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue