From 8d3418dfa99e6f0eb40f747990953ab684e53e6f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 6 Dec 2019 17:08:24 -0700 Subject: [PATCH] Update copy for DM invites Fixes https://github.com/vector-im/riot-web/issues/10766 --- src/components/views/rooms/RoomPreviewBar.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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;