diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index e48c6866bf..7cbbf8ba64 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -1070,9 +1070,8 @@ export default class InviteDialog extends React.PureComponent { let buttonText; let goButtonFn; + const userId = MatrixClientPeg.get().getUserId(); if (this.props.kind === KIND_DM) { - const userId = MatrixClientPeg.get().getUserId(); - title = _t("Direct Messages"); helpText = _t( "Start a conversation with someone using their name, username (like ) or email address.", @@ -1086,9 +1085,11 @@ export default class InviteDialog extends React.PureComponent { } else { // KIND_INVITE title = _t("Invite to this room"); helpText = _t( - "If you can't find someone, ask them for their username (e.g. @user:server.com) or " + - "share this room.", {}, + "Invite someone using their name, username (like ), email address or share this room.", + {}, { + userId: () => + {userId}, a: (sub) => {sub}, }, diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index b5b87054dc..a24b2bde73 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1650,7 +1650,7 @@ "Recently Direct Messaged": "Recently Direct Messaged", "Start a conversation with someone using their name, username (like ) or email address.": "Start a conversation with someone using their name, username (like ) or email address.", "Go": "Go", - "If you can't find someone, ask them for their username (e.g. @user:server.com) or share this room.": "If you can't find someone, ask them for their username (e.g. @user:server.com) or share this room.", + "Invite someone using their name, username (like ), email address or share this room.": "Invite someone using their name, username (like ), email address or share this room.", "You added a new session '%(displayName)s', which is requesting encryption keys.": "You added a new session '%(displayName)s', which is requesting encryption keys.", "Your unverified session '%(displayName)s' is requesting encryption keys.": "Your unverified session '%(displayName)s' is requesting encryption keys.", "Start verification": "Start verification",