From 47e2157dd43e4854ef23a087e200a557868cd794 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 24 Feb 2024 22:11:18 +0200 Subject: [PATCH] Fix checking OTK count on server when no keys have been uploaded --- mautrix/crypto/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix/crypto/machine.py b/mautrix/crypto/machine.py index 0cfe6ea3..3dc84856 100644 --- a/mautrix/crypto/machine.py +++ b/mautrix/crypto/machine.py @@ -292,7 +292,7 @@ async def _share_keys(self, current_otk_count: int | None) -> None: ): self.log.debug("Checking OTK count on server") current_otk_count = (await self.client.upload_keys()).get( - EncryptionKeyAlgorithm.SIGNED_CURVE25519 + EncryptionKeyAlgorithm.SIGNED_CURVE25519, 0 ) device_keys = ( self.account.get_device_keys(self.client.mxid, self.client.device_id)