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:
Hofer Julian 2020-08-27 12:36:30 +02:00 committed by GitHub
parent 8c0ec5f759
commit 36cf756f04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,11 +82,6 @@ async def main():
# 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}")
await client.sync_forever(timeout=30000, full_state=True)