diff --git a/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js b/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js
index 51184149031..8bf70d76eb8 100644
--- a/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js
+++ b/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js
@@ -40,6 +40,7 @@ import Spinner from "../../../elements/Spinner";
import {SettingLevel} from "../../../../../settings/SettingLevel";
import {UIFeature} from "../../../../../settings/UIFeature";
import {replaceableComponent} from "../../../../../utils/replaceableComponent";
+import QuestionDialog from '../../../dialogs/QuestionDialog';
@replaceableComponent("views.settings.tabs.user.GeneralUserSettingsTab")
export default class GeneralUserSettingsTab extends React.Component {
@@ -236,7 +237,21 @@ export default class GeneralUserSettingsTab extends React.Component {
});
};
- _onDeactivateClicked = () => {
+ _onDeactivateClicked = async () => {
+ const { finished } = Modal.createTrackedDialog("Warning", "", QuestionDialog, {
+ title: _t("Warning"),
+ description:
+
+ { _t(`Please note that this is a permanent action. Once you deactivate your account, your
+ account cannot be reactivated, and you won't be able to sign up again with the same user ID.`) }
+
+
,
+ danger: true,
+ button: _t('I understand the risks and wish to continue'),
+ });
+ const [proceed] = await finished;
+ if (!proceed) return;
+
Modal.createTrackedDialog('Deactivate Account', '', DeactivateAccountDialog, {
onFinished: (success) => {
if (success) this.props.closeSettingsFn();
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 1b04ae3b896..c223eddc3a4 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1229,6 +1229,8 @@
"Failed to change password. Is your password correct?": "Failed to change password. Is your password correct?",
"Success": "Success",
"Your password was successfully changed. You will not receive push notifications on other sessions until you log back in to them": "Your password was successfully changed. You will not receive push notifications on other sessions until you log back in to them",
+ "Please note that this is a permanent action. Once you deactivate your account, your\n account cannot be reactivated, and you won't be able to sign up again with the same user ID.": "Please note that this is a permanent action. Once you deactivate your account, your\n account cannot be reactivated, and you won't be able to sign up again with the same user ID.",
+ "I understand the risks and wish to continue": "I understand the risks and wish to continue",
"Email addresses": "Email addresses",
"Phone numbers": "Phone numbers",
"Set a new account password...": "Set a new account password...",