You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Replies: un-break click-to-mention on SenderProfile for reply&preview
Fixes #6670 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -556,11 +556,14 @@ module.exports = withMatrixClient(React.createClass({
|
|||||||
|
|
||||||
if (needsSenderProfile) {
|
if (needsSenderProfile) {
|
||||||
let text = null;
|
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');
|
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.video') text = _td('%(senderName)s sent a video');
|
||||||
else if (msgtype === 'm.file') text = _td('%(senderName)s uploaded a file');
|
else if (msgtype === 'm.file') text = _td('%(senderName)s uploaded a file');
|
||||||
sender = <SenderProfile onClick={this.onSenderProfileClick} mxEvent={this.props.mxEvent} enableFlair={!text} text={text} />;
|
sender = <SenderProfile onClick={this.onSenderProfileClick}
|
||||||
|
mxEvent={this.props.mxEvent}
|
||||||
|
enableFlair={!text}
|
||||||
|
text={text} />;
|
||||||
} else {
|
} else {
|
||||||
sender = <SenderProfile mxEvent={this.props.mxEvent} enableFlair={true} />;
|
sender = <SenderProfile mxEvent={this.props.mxEvent} enableFlair={true} />;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user