Update Invite Dialog copy to include email addresses

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-04-27 14:07:39 +01:00
parent 121ac14273
commit 606940bd77

View file

@ -1067,9 +1067,8 @@ export default class InviteDialog extends React.PureComponent {
let buttonText; let buttonText;
let goButtonFn; let goButtonFn;
if (this.props.kind === KIND_DM) {
const userId = MatrixClientPeg.get().getUserId(); const userId = MatrixClientPeg.get().getUserId();
if (this.props.kind === KIND_DM) {
title = _t("Direct Messages"); title = _t("Direct Messages");
helpText = _t( helpText = _t(
"Start a conversation with someone using their name, username (like <userId/>) or email address.", "Start a conversation with someone using their name, username (like <userId/>) or email address.",
@ -1083,12 +1082,11 @@ export default class InviteDialog extends React.PureComponent {
} else { // KIND_INVITE } else { // KIND_INVITE
title = _t("Invite to this room"); title = _t("Invite to this room");
helpText = _t( helpText = _t(
"If you can't find someone, ask them for their username (e.g. @user:server.com) or " + "Invite someone using their name, username (like <userId/>) or email address.",
"<a>share this room</a>.", {}, {},
{ {userId: () => {
a: (sub) => return <a href={makeUserPermalink(userId)} rel="noreferrer noopener" target="_blank">{userId}</a>;
<a href={makeRoomPermalink(this.props.roomId)} rel="noreferrer noopener" target="_blank">{sub}</a>, }},
},
); );
buttonText = _t("Invite"); buttonText = _t("Invite");
goButtonFn = this._inviteUsers; goButtonFn = this._inviteUsers;