diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js
index a46fa0df07..c30a34cb98 100644
--- a/src/components/views/dialogs/InviteDialog.js
+++ b/src/components/views/dialogs/InviteDialog.js
@@ -1067,9 +1067,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.",
@@ -1083,12 +1082,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.", {},
- {
- a: (sub) =>
- {sub},
- },
+ "Invite someone using their name, username (like ) or email address.",
+ {},
+ {userId: () => {
+ return {userId};
+ }},
);
buttonText = _t("Invite");
goButtonFn = this._inviteUsers;