Remove unneeded key_upload (#16)
It is automatically called by `sync_forever()`. See https://matrix-nio.readthedocs.io/en/latest/nio.html?highlight=keys_upload#nio.AsyncClient.keys_upload
This commit is contained in:
parent
8c0ec5f759
commit
36cf756f04
1 changed files with 0 additions and 5 deletions
|
@ -82,11 +82,6 @@ async def main():
|
||||||
|
|
||||||
# Login succeeded!
|
# Login succeeded!
|
||||||
|
|
||||||
# Sync encryption keys with the server
|
|
||||||
# Required for participating in encrypted rooms
|
|
||||||
if client.should_upload_keys:
|
|
||||||
await client.keys_upload()
|
|
||||||
|
|
||||||
logger.info(f"Logged in as {config.user_id}")
|
logger.info(f"Logged in as {config.user_id}")
|
||||||
await client.sync_forever(timeout=30000, full_state=True)
|
await client.sync_forever(timeout=30000, full_state=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue