Update copy for DM invites
Fixes https://github.com/vector-im/riot-web/issues/10766
This commit is contained in:
parent
89fdfd7a23
commit
8d3418dfa9
1 changed files with 10 additions and 5 deletions
|
@ -451,16 +451,21 @@ module.exports = createReactClass({
|
||||||
if (isDM) {
|
if (isDM) {
|
||||||
title = _t("Do you want to chat with %(user)s?",
|
title = _t("Do you want to chat with %(user)s?",
|
||||||
{ user: inviteMember.name });
|
{ user: inviteMember.name });
|
||||||
|
subTitle = [
|
||||||
|
avatar,
|
||||||
|
_t("<userName/> wants to chat", {}, {userName: () => inviterElement}),
|
||||||
|
];
|
||||||
|
primaryActionLabel = _t("Start chatting");
|
||||||
} else {
|
} else {
|
||||||
title = _t("Do you want to join %(roomName)s?",
|
title = _t("Do you want to join %(roomName)s?",
|
||||||
{ roomName: this._roomName() });
|
{ roomName: this._roomName() });
|
||||||
|
subTitle = [
|
||||||
|
avatar,
|
||||||
|
_t("<userName/> invited you", {}, {userName: () => inviterElement}),
|
||||||
|
];
|
||||||
|
primaryActionLabel = _t("Accept");
|
||||||
}
|
}
|
||||||
subTitle = [
|
|
||||||
avatar,
|
|
||||||
_t("<userName/> invited you", {}, {userName: () => inviterElement}),
|
|
||||||
];
|
|
||||||
|
|
||||||
primaryActionLabel = _t("Accept");
|
|
||||||
primaryActionHandler = this.props.onJoinClick;
|
primaryActionHandler = this.props.onJoinClick;
|
||||||
secondaryActionLabel = _t("Reject");
|
secondaryActionLabel = _t("Reject");
|
||||||
secondaryActionHandler = this.props.onRejectClick;
|
secondaryActionHandler = this.props.onRejectClick;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue