diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index 513b867d4f..a43a4df158 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -451,16 +451,21 @@ module.exports = createReactClass({ if (isDM) { title = _t("Do you want to chat with %(user)s?", { user: inviteMember.name }); + subTitle = [ + avatar, + _t(" wants to chat", {}, {userName: () => inviterElement}), + ]; + primaryActionLabel = _t("Start chatting"); } else { title = _t("Do you want to join %(roomName)s?", { roomName: this._roomName() }); + subTitle = [ + avatar, + _t(" invited you", {}, {userName: () => inviterElement}), + ]; + primaryActionLabel = _t("Accept"); } - subTitle = [ - avatar, - _t(" invited you", {}, {userName: () => inviterElement}), - ]; - primaryActionLabel = _t("Accept"); primaryActionHandler = this.props.onJoinClick; secondaryActionLabel = _t("Reject"); secondaryActionHandler = this.props.onRejectClick; diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 182c761c5f..d1bd34860d 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -980,6 +980,8 @@ "Use an identity server in Settings to receive invites directly in Riot.": "Use an identity server in Settings to receive invites directly in Riot.", "Share this email in Settings to receive invites directly in Riot.": "Share this email in Settings to receive invites directly in Riot.", "Do you want to chat with %(user)s?": "Do you want to chat with %(user)s?", + " wants to chat": " wants to chat", + "Start chatting": "Start chatting", "Do you want to join %(roomName)s?": "Do you want to join %(roomName)s?", " invited you": " invited you", "Reject": "Reject",