Skip to content

Commit 47e2157

Browse files
committedFeb 24, 2024
Fix checking OTK count on server when no keys have been uploaded
1 parent 9b4198a commit 47e2157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mautrix/crypto/machine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async def _share_keys(self, current_otk_count: int | None) -> None:
292292
):
293293
self.log.debug("Checking OTK count on server")
294294
current_otk_count = (await self.client.upload_keys()).get(
295-
EncryptionKeyAlgorithm.SIGNED_CURVE25519
295+
EncryptionKeyAlgorithm.SIGNED_CURVE25519, 0
296296
)
297297
device_keys = (
298298
self.account.get_device_keys(self.client.mxid, self.client.device_id)

0 commit comments

Comments
 (0)
Please sign in to comment.