diff --git a/res/css/views/rooms/_RoomPreviewBar.pcss b/res/css/views/rooms/_RoomPreviewBar.pcss
index be50c9faf2..a3fae0e008 100644
--- a/res/css/views/rooms/_RoomPreviewBar.pcss
+++ b/res/css/views/rooms/_RoomPreviewBar.pcss
@@ -163,6 +163,10 @@ a.mx_RoomPreviewBar_inviter {
cursor: pointer;
}
+.mx_RoomPreviewBar_inviter_mxid {
+ color: var(--cpd-color-text-secondary);
+}
+
.mx_RoomPreviewBar_icon {
margin-right: 8px;
vertical-align: text-top;
diff --git a/src/components/views/rooms/RoomPreviewBar.tsx b/src/components/views/rooms/RoomPreviewBar.tsx
index 472cb4e4eb..0f4c552fdc 100644
--- a/src/components/views/rooms/RoomPreviewBar.tsx
+++ b/src/components/views/rooms/RoomPreviewBar.tsx
@@ -506,33 +506,39 @@ export default class RoomPreviewBar extends React.Component
+ {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 f3fe21baa9..1cc22ac382 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