From 606940bd7763a0e23c6cf4977dc9f0d07995a81b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 27 Apr 2020 14:07:39 +0100 Subject: [PATCH] Update Invite Dialog copy to include email addresses Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/InviteDialog.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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;