Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Schedule dehydration on reload if the dehydration key is already cached locally#29021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
df668b6
toda898e8
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks good to me, thanks.
4cba79d
Uh oh!
There was an error while loading.Please reload this page.
* @param createNewKey: force a new dehydration key to be created, even if one | ||
* already exists. This is used when we reset secret storage. | ||
*/ | ||
export async function initialiseDehydration(createNewKey: boolean = false): Promise<void> { | ||
const crypto = MatrixClientPeg.safeGet().getCrypto(); | ||
if (await deviceDehydrationEnabled(crypto)) { | ||
export async function initialiseDehydration(opts: StartDehydrationOpts = {}, client?: MatrixClient): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@andybalaam@uhoreg please can we make sure that we update thedocumentation when we update the signature of a public function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
(fix in#29261)
Uh oh!
There was an error while loading.Please reload this page.
Depends onmatrix-org/matrix-js-sdk#4664
Fixes#29031
Checklist
public
/exported
symbols have accurateTSDoc documentation.