Typo
This commit is contained in:
parent
5cd3680295
commit
f414f5a4c4
1 changed files with 3 additions and 3 deletions
|
|
@ -430,12 +430,12 @@ async def main():
|
||||||
"device_id": client.device_id
|
"device_id": client.device_id
|
||||||
}, f)
|
}, f)
|
||||||
|
|
||||||
# Ensure an Olm crypto account exists in the store
|
# Ensure an Olm crypto account exists in the store (accessing via crypto_store variable directly)
|
||||||
account = await client.crypto.store.get_account(client.mxid)
|
account = await 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 = OlmAccount.generate()
|
account = OlmAccount.generate()
|
||||||
await client.crypto.store.put_account(account)
|
await crypto_store.put_account(account)
|
||||||
|
|
||||||
# Register Event Handlers
|
# Register Event Handlers
|
||||||
client.add_event_handler(EventType.ROOM_MEMBER, on_invite)
|
client.add_event_handler(EventType.ROOM_MEMBER, on_invite)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue