Skip to content

crypto: repair one-time keys when server has more than the account can store - #633

Open
iFixRobots wants to merge 1 commit into
mainfrom
iFixRobots/repair-excess-otks
Open

iFixRobots wants to merge 1 commit into
mainfrom
iFixRobots/repair-excess-otks

Conversation

@iFixRobots

Copy link
Copy Markdown
Contributor

If the server reports more signed one-time keys than MaxNumberOfOneTimeKeys, some of them were already dropped from the account, and since they're claimed oldest-first, every new Olm session to the device fails until they're used up. ShareKeys now runs RepairOneTimeKeys in the background once when the fetched count is above the max.

View in Indent
Tag @indent to continue the conversation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant