diff --git a/src/components/structures/auth/SoftLogout.js b/src/components/structures/auth/SoftLogout.js
index e01be3c1f0..8615611f2c 100644
--- a/src/components/structures/auth/SoftLogout.js
+++ b/src/components/structures/auth/SoftLogout.js
@@ -57,7 +57,9 @@ export default class SoftLogout extends React.Component {
const userId = MatrixClientPeg.get().getUserId();
const user = MatrixClientPeg.get().getUser(userId);
- const displayName = user ? user.displayName : userId.substring(1).split(':')[0];
+ const displayName = user && user.displayName !== userId
+ ? user.displayName
+ : userId.substring(1).split(':')[0];
this.state = {
domainName,
@@ -216,33 +218,40 @@ export default class SoftLogout extends React.Component {
{_t(
- "Your homeserver (%(domainName)s) admin has signed you out of your " +
- "account %(displayName)s (%(userId)s).",
+ "Your homeserver (%(domainName)s) admin has signed you out of your " +
+ "account %(displayName)s (%(userId)s).",
{
domainName: this.state.domainName,
displayName: this.state.displayName,
userId: this.state.userId,
},
+ {
+ // XXX: It's annoying that we can't just map to two things.
+ // https://github.com/vector-im/riot-web/issues/9086
+ 'strong1': (val) => {val},
+ 'strong2': (val) => {val},
+ },
)}
- {_t("I don't want to sign in")}
-
- {_t(
- "If this is a shared device, or you don't want to access your account " +
- "again from it, clear all data stored locally on this device.",
- )}
-
-
-
- {_t("Clear all data")}
-
-
-
{_t("Sign in")}
{this._renderSignInSection()}
+
+ {_t("Clear personal data")}
+
+ {_t(
+ "Warning: Your personal data (including encryption keys) is still stored " +
+ "on this device. Clear it if you're finished using this device, or want to sign " +
+ "in to another account.",
+ )}
+
+
+
+ {_t("Clear all data")}
+
+
);
diff --git a/src/components/views/dialogs/ConfirmWipeDeviceDialog.js b/src/components/views/dialogs/ConfirmWipeDeviceDialog.js
index 337591be53..b7ad5c2557 100644
--- a/src/components/views/dialogs/ConfirmWipeDeviceDialog.js
+++ b/src/components/views/dialogs/ConfirmWipeDeviceDialog.js
@@ -43,14 +43,15 @@ export default class ConfirmWipeDeviceDialog extends React.Component {
{_t(
- "Deleting all data from this device is permanent. Encrypted messages will be lost " +
+ "Clearing all data from this device is permanent. Encrypted messages will be lost " +
"unless their keys have been backed up.",
)}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 74f693cd3c..f273a1bee6 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1129,8 +1129,8 @@
"Confirm Removal": "Confirm Removal",
"Are you sure you wish to remove (delete) this event? Note that if you delete a room name or topic change, it could undo the change.": "Are you sure you wish to remove (delete) this event? Note that if you delete a room name or topic change, it could undo the change.",
"Clear all data on this device?": "Clear all data on this device?",
- "Deleting all data from this device is permanent. Encrypted messages will be lost unless their keys have been backed up.": "Deleting all data from this device is permanent. Encrypted messages will be lost unless their keys have been backed up.",
- "Delete everything": "Delete everything",
+ "Clearing all data from this device is permanent. Encrypted messages will be lost unless their keys have been backed up.": "Clearing all data from this device is permanent. Encrypted messages will be lost unless their keys have been backed up.",
+ "Clear all data": "Clear all data",
"Community IDs cannot be empty.": "Community IDs cannot be empty.",
"Community IDs may only contain characters a-z, 0-9, or '=_-./'": "Community IDs may only contain characters a-z, 0-9, or '=_-./'",
"Something went wrong whilst creating your community": "Something went wrong whilst creating your community",
@@ -1591,10 +1591,9 @@
"Forgotten your password?": "Forgotten your password?",
"Cannot re-authenticate with your account. Please contact your homeserver admin for more information.": "Cannot re-authenticate with your account. Please contact your homeserver admin for more information.",
"You're signed out": "You're signed out",
- "Your homeserver (%(domainName)s) admin has signed you out of your account %(displayName)s (%(userId)s).": "Your homeserver (%(domainName)s) admin has signed you out of your account %(displayName)s (%(userId)s).",
- "I don't want to sign in": "I don't want to sign in",
- "If this is a shared device, or you don't want to access your account again from it, clear all data stored locally on this device.": "If this is a shared device, or you don't want to access your account again from it, clear all data stored locally on this device.",
- "Clear all data": "Clear all data",
+ "Your homeserver (%(domainName)s) admin has signed you out of your account %(displayName)s (%(userId)s).": "Your homeserver (%(domainName)s) admin has signed you out of your account %(displayName)s (%(userId)s).",
+ "Clear personal data": "Clear personal data",
+ "Warning: Your personal data (including encryption keys) is still stored on this device. Clear it if you're finished using this device, or want to sign in to another account.": "Warning: Your personal data (including encryption keys) is still stored on this device. Clear it if you're finished using this device, or want to sign in to another account.",
"Commands": "Commands",
"Results from DuckDuckGo": "Results from DuckDuckGo",
"Emoji": "Emoji",