You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Fix 3pid invite acceptance with desired wording.
Fixes https://github.com/vector-im/vector-web/issues/1070
This commit is contained in:
@ -11,11 +11,12 @@ function textForMemberEvent(ev) {
|
|||||||
case 'invite':
|
case 'invite':
|
||||||
var threePidContent = ev.getContent().third_party_invite;
|
var threePidContent = ev.getContent().third_party_invite;
|
||||||
if (threePidContent) {
|
if (threePidContent) {
|
||||||
// TODO: When we have third_party_invite.display_name we should
|
if (threePidContent.display_name) {
|
||||||
// do this as "$displayname received the invitation from $sender"
|
return targetName + " accepted " + " the invitation for " +
|
||||||
// or equiv
|
threePidContent.display_name + ".";
|
||||||
return targetName + " received an invitation from " + senderName +
|
} else {
|
||||||
".";
|
return targetName + " accepted an invitation.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return senderName + " invited " + targetName + ".";
|
return senderName + " invited " + targetName + ".";
|
||||||
|
Reference in New Issue
Block a user