Skip to content

Commit

Permalink
Fix checking OTK count on server when no keys have been uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 24, 2024
1 parent 9b4198a commit 47e2157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix/crypto/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 47e2157

Please sign in to comment.