WIP: added key upload on Matrix login, still debugging
This commit is contained in:
@@ -119,7 +119,14 @@ async def main() -> None:
|
||||
if i == MATRIX_LOGIN_TRIES - 1:
|
||||
return
|
||||
await asyncio.sleep(MATRIX_LOGIN_DELAY_INCREMENT * (i + 1))
|
||||
logger.info("Logged in successfully")
|
||||
logger.info("Logged in successfully")
|
||||
|
||||
logger.debug("Upload one time Olm keys")
|
||||
try:
|
||||
await client.upload_keys()
|
||||
except Exception as e:
|
||||
logger.error(f"Error uploading keys: {e}")
|
||||
return
|
||||
|
||||
await trust_all_devices(client)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user