1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2026-01-03 21:42:32 +03:00

Merge pull request #185 from matrix-org/dbkr/threepid_invite_wording

Fix 3pid invite acceptance with desired wording.
This commit is contained in:
David Baker
2016-03-04 11:37:55 +00:00

View File

@@ -11,11 +11,12 @@ function textForMemberEvent(ev) {
case 'invite':
var threePidContent = ev.getContent().third_party_invite;
if (threePidContent) {
// TODO: When we have third_party_invite.display_name we should
// do this as "$displayname received the invitation from $sender"
// or equiv
return targetName + " received an invitation from " + senderName +
".";
if (threePidContent.display_name) {
return targetName + " accepted the invitation for " +
threePidContent.display_name + ".";
} else {
return targetName + " accepted an invitation.";
}
}
else {
return senderName + " invited " + targetName + ".";