diff --git a/src/RoomInvite.js b/src/RoomInvite.js index b2382e206f..7a3b59cef8 100644 --- a/src/RoomInvite.js +++ b/src/RoomInvite.js @@ -68,7 +68,6 @@ export function showRoomInviteDialog(roomId) { Modal.createTrackedDialog('Chat Invite', '', AddressPickerDialog, { title: _t('Invite new room members'), - description: _t('Who would you like to add to this room?'), button: _t('Send Invites'), placeholder: _t("Email, name or Matrix ID"), validAddressTypes, diff --git a/src/components/views/dialogs/AddressPickerDialog.js b/src/components/views/dialogs/AddressPickerDialog.js index ac2181f1f2..364db97bf5 100644 --- a/src/components/views/dialogs/AddressPickerDialog.js +++ b/src/components/views/dialogs/AddressPickerDialog.js @@ -577,6 +577,13 @@ module.exports = createReactClass({ const AddressSelector = sdk.getComponent("elements.AddressSelector"); this.scrollElement = null; + let inputLabel; + if (this.props.description) { + inputLabel =
+ +
; + } + const query = []; // create the invite list if (this.state.selectedList.length > 0) { @@ -640,9 +647,7 @@ module.exports = createReactClass({ return ( -
- -
+ {inputLabel}
{ query }
{ error } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index e024f4e2e9..513d9e64c7 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -117,7 +117,6 @@ "Email, name or Matrix ID": "Email, name or Matrix ID", "Start Chat": "Start Chat", "Invite new room members": "Invite new room members", - "Who would you like to add to this room?": "Who would you like to add to this room?", "Send Invites": "Send Invites", "Failed to start chat": "Failed to start chat", "Operation failed": "Operation failed",