From f68036a4fb30c0bf067a08365ae86d5e0db1ccdd Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Sun, 6 May 2018 19:18:41 +0100
Subject: [PATCH] Replies: un-break click-to-mention on SenderProfile for
reply&preview
Fixes #6670
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
src/components/views/rooms/EventTile.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js
index bfcf8ac9d4..b92504d0f1 100644
--- a/src/components/views/rooms/EventTile.js
+++ b/src/components/views/rooms/EventTile.js
@@ -556,11 +556,14 @@ module.exports = withMatrixClient(React.createClass({
if (needsSenderProfile) {
let text = null;
- if (!this.props.tileShape) {
+ if (!this.props.tileShape || this.props.tileShape === 'reply' || this.props.tileShape === 'reply_preview') {
if (msgtype === 'm.image') text = _td('%(senderName)s sent an image');
else if (msgtype === 'm.video') text = _td('%(senderName)s sent a video');
else if (msgtype === 'm.file') text = _td('%(senderName)s uploaded a file');
- sender = ;
+ sender = ;
} else {
sender = ;
}