-
-
-
{ _t('Replying') }
-
cancelQuoting(this.context.timelineRenderingType)}
- />
-
-
+
+
+ { _t('Reply to ', {}, {
+ 'User': () => ,
+ }) }
+
+ cancelQuoting(this.context.timelineRenderingType)} />
+
;
}
}
diff --git a/src/components/views/rooms/ReplyTile.tsx b/src/components/views/rooms/ReplyTile.tsx
index 2b973abfca5..bc26c02c238 100644
--- a/src/components/views/rooms/ReplyTile.tsx
+++ b/src/components/views/rooms/ReplyTile.tsx
@@ -44,6 +44,7 @@ interface IProps {
getRelationsForEvent?: (
(eventId: string, relationType: string, eventType: string) => Relations
);
+ showSenderProfile?: boolean;
}
export default class ReplyTile extends React.PureComponent
{
@@ -51,6 +52,7 @@ export default class ReplyTile extends React.PureComponent {
static defaultProps = {
onHeightChanged: () => {},
+ showSenderProfile: true,
};
componentDidMount() {
@@ -136,7 +138,8 @@ export default class ReplyTile extends React.PureComponent {
let sender;
const needsSenderProfile = (
- !isInfoMessage
+ this.props.showSenderProfile
+ && !isInfoMessage
&& msgType !== MsgType.Image
&& evType !== EventType.Sticker
&& evType !== EventType.RoomCreate
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 3aa40c62e6e..5d3417e68c1 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1712,12 +1712,12 @@
"Send message": "Send message",
"Reply to encrypted thread…": "Reply to encrypted thread…",
"Reply to thread…": "Reply to thread…",
- "Send an encrypted reply…": "Send an encrypted reply…",
- "Send a reply…": "Send a reply…",
- "Send an encrypted message…": "Send an encrypted message…",
- "Send a message…": "Send a message…",
- "The conversation continues here.": "The conversation continues here.",
+ "Send encrypted reply…": "Send encrypted reply…",
+ "Send reply…": "Send reply…",
+ "Send encrypted message…": "Send encrypted message…",
+ "Send message…": "Send message…",
"This room has been replaced and is no longer active.": "This room has been replaced and is no longer active.",
+ "The conversation continues here.": "The conversation continues here.",
"You do not have permission to post to this room": "You do not have permission to post to this room",
"%(seconds)ss left": "%(seconds)ss left",
"Send voice message": "Send voice message",
@@ -1770,7 +1770,7 @@
"Seen by %(count)s people|one": "Seen by %(count)s person",
"Read receipts": "Read receipts",
"Recently viewed": "Recently viewed",
- "Replying": "Replying",
+ "Reply to ": "Reply to ",
"Room %(name)s": "Room %(name)s",
"Recently visited rooms": "Recently visited rooms",
"No recently visited rooms": "No recently visited rooms",
diff --git a/test/components/views/rooms/MessageComposer-test.tsx b/test/components/views/rooms/MessageComposer-test.tsx
index e756a7653c4..d774aa80604 100644
--- a/test/components/views/rooms/MessageComposer-test.tsx
+++ b/test/components/views/rooms/MessageComposer-test.tsx
@@ -61,7 +61,7 @@ describe("MessageComposer", () => {
expect(wrapper.find("SendMessageComposer")).toHaveLength(0);
expect(wrapper.find("MessageComposerButtons")).toHaveLength(0);
- expect(wrapper.find(".mx_MessageComposer_roomReplaced_header")).toHaveLength(1);
+ expect(wrapper.find("p").text()).toContain("room has been replaced");
});
});