From 127051892d23c88fc22a58a151732287c8364c05 Mon Sep 17 00:00:00 2001
From: Andrew Ferrazzutti
+ {inviteMember.userId}
+ >
+ )}
+ >
+ );
- const isDM = this.isDMInvite();
if (isDM) {
title = _t("room|dm_invite_title", {
user: inviteMember?.name ?? this.props.inviterName,
});
- subTitle = [avatar, _t("room|dm_invite_subtitle", {}, { userName: () => inviterElement })];
primaryActionLabel = _t("room|dm_invite_action");
} else {
title = _t("room|invite_title", { roomName });
- subTitle = [avatar, _t("room|invite_subtitle", {}, { userName: () => inviterElement })];
primaryActionLabel = _t("action|accept");
}
+ subTitle = [avatar, inviterElement];
const myUserId = MatrixClientPeg.safeGet().getSafeUserId();
const member = this.props.room?.currentState.getMember(myUserId);
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index f3fe21baa91..1cc22ac3829 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1991,7 +1991,7 @@
"invite_reject_ignore": "Reject & Ignore user",
"invite_sent_to_email": "This invite was sent to %(email)s",
"invite_sent_to_email_room": "This invite to %(roomName)s was sent to %(email)s",
- "invite_subtitle": "
+ Invited by @inviter:test.com - invited you
@@ -322,18 +322,19 @@ exports[`
-
-
- @inviter:test.com name
-
- (
- @inviter:test.com
- )
+
+ @inviter:test.com name
wants to chat
+
+
+ @inviter:test.com
+
-
-
- @inviter:test.com name
-
- (
- @inviter:test.com
- )
+ Invited by
+
+ @inviter:test.com name
- invited you
+
+
+
+ @inviter:test.com