From 41dece38a4d99bfc989ca09efe40b47f76e87400 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 29 Apr 2020 10:35:35 +0100 Subject: [PATCH] iterate copy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/InviteDialog.js | 13 ++++++++----- src/i18n/strings/en_EN.json | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index 7bc9364b52..516ac3183f 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -19,7 +19,7 @@ import PropTypes from 'prop-types'; import {_t} from "../../../languageHandler"; import * as sdk from "../../../index"; import {MatrixClientPeg} from "../../../MatrixClientPeg"; -import {makeUserPermalink} from "../../../utils/permalinks/Permalinks"; +import {makeRoomPermalink, makeUserPermalink} from "../../../utils/permalinks/Permalinks"; import DMRoomMap from "../../../utils/DMRoomMap"; import {RoomMember} from "matrix-js-sdk/src/matrix"; import SdkConfig from "../../../SdkConfig"; @@ -1082,11 +1082,14 @@ export default class InviteDialog extends React.PureComponent { } else { // KIND_INVITE title = _t("Invite to this room"); helpText = _t( - "Invite someone using their name, username (like ) or email address.", + "Invite someone using their name, username (like ), email address or share this room.", {}, - {userId: () => { - return {userId}; - }}, + { + userId: () => + {userId}, + a: (sub) => + {sub}, + }, ); buttonText = _t("Invite"); goButtonFn = this._inviteUsers; diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 3b6e077aac..2a8a614d96 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1642,7 +1642,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", - "Invite someone using their name, username (like ) or email address.": "Invite someone using their name, username (like ) or email address.", + "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",