diff --git a/src/components/views/dialogs/UserSettingsDialog.js b/src/components/views/dialogs/UserSettingsDialog.js
index b135d5f5f6..210773c524 100644
--- a/src/components/views/dialogs/UserSettingsDialog.js
+++ b/src/components/views/dialogs/UserSettingsDialog.js
@@ -89,7 +89,7 @@ export default class UserSettingsDialog extends React.Component {
tabs.push(new Tab(
_td("Security & Privacy"),
"mx_UserSettingsDialog_securityIcon",
- ,
+ ,
));
if (SdkConfig.get()['showLabsSettings'] || SettingsStore.getLabsFeatures().length > 0) {
tabs.push(new Tab(
diff --git a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
index 2a2bbbdb52..8c158b7799 100644
--- a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
+++ b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
@@ -52,6 +52,10 @@ export class IgnoredUser extends React.Component {
}
export default class SecurityUserSettingsTab extends React.Component {
+ static propTypes = {
+ closeSettingsFn: PropTypes.func.isRequired,
+ };
+
constructor() {
super();
@@ -107,6 +111,11 @@ export default class SecurityUserSettingsTab extends React.Component {
);
};
+ _onGoToUserProfileClick = () => {
+ // close the settings dialog & let the default action run (ie. navigate to the link)
+ this.props.closeSettingsFn();
+ }
+
_onUserUnignored = async (userId) => {
const {ignoredUserIds, waitingUnignored} = this.state;
const currentlyIgnoredUserIds = ignoredUserIds.filter(e => !waitingUnignored.includes(e));
@@ -311,6 +320,9 @@ export default class SecurityUserSettingsTab extends React.Component {
return (
{_t("Security & Privacy")}
+
+ {_t("Verify your devices in your User Profile")}
+
{_t("Sessions")}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index bd4c8f58c8..bee1b1a732 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -845,6 +845,7 @@
"Message search": "Message search",
"Cross-signing": "Cross-signing",
"Security & Privacy": "Security & Privacy",
+ "Verify your devices in your User Profile": "Verify your devices in your User Profile",
"Sessions": "Sessions",
"A session's public name is visible to people you communicate with": "A session's public name is visible to people you communicate with",
"Riot collects anonymous analytics to allow us to improve the application.": "Riot collects anonymous analytics to allow us to improve the application.",