Skip to content

Commit 238be90

Browse files
committed
Explain what the 'hsErase' parameter does
1 parent ecaade4 commit 238be90

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

crates/handlers/src/graphql/mutations/user.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,13 @@ impl ResendRecoveryEmailPayload {
388388
#[derive(InputObject)]
389389
pub struct DeactivateUserInput {
390390
/// Whether to ask the homeserver to GDPR-erase the user
391+
///
392+
/// This is equivalent to the `erase` parameter on the
393+
/// `/_matrix/client/v3/account/deactivate` C-S API, which is
394+
/// implementation-specific.
395+
///
396+
/// What Synapse does is documented here:
397+
/// <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>
391398
hs_erase: bool,
392399

393400
/// The password of the user to deactivate.

frontend/schema.graphql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,13 @@ The input for the `deactivateUser` mutation.
607607
input DeactivateUserInput {
608608
"""
609609
Whether to ask the homeserver to GDPR-erase the user
610+
611+
This is equivalent to the `erase` parameter on the
612+
`/_matrix/client/v3/account/deactivate` C-S API, which is
613+
implementation-specific.
614+
615+
What Synapse does is documented here:
616+
<https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>
610617
"""
611618
hsErase: Boolean!
612619
"""

frontend/src/gql/graphql.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,16 @@ export type DateFilter = {
391391

392392
/** The input for the `deactivateUser` mutation. */
393393
export type DeactivateUserInput = {
394-
/** Whether to ask the homeserver to GDPR-erase the user */
394+
/**
395+
* Whether to ask the homeserver to GDPR-erase the user
396+
*
397+
* This is equivalent to the `erase` parameter on the
398+
* `/_matrix/client/v3/account/deactivate` C-S API, which is
399+
* implementation-specific.
400+
*
401+
* What Synapse does is documented here:
402+
* <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>
403+
*/
395404
hsErase: Scalars['Boolean']['input'];
396405
/** The password of the user to deactivate. */
397406
password?: InputMaybe<Scalars['String']['input']>;

0 commit comments

Comments
 (0)