Can set user recovery key from UI
This commit is contained in:
@@ -33,4 +33,15 @@ export class MatrixLinkApi {
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a new user recovery key
|
||||
*/
|
||||
static async SetRecoveryKey(key: string): Promise<void> {
|
||||
await APIClient.exec({
|
||||
uri: "/matrix_link/set_recovery_key",
|
||||
method: "POST",
|
||||
jsonData: { key },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user