diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 4411067f2e..804789f306 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -700,6 +700,15 @@ module.exports = withMatrixClient(React.createClass({ case 'reply': case 'reply_preview': { + let thread; + if (this.props.tileShape === 'reply_preview') { + thread = ReplyThread.makeThread( + this.props.mxEvent, + this.props.onWidgetLoad, + this.props.permalinkCreator, + 'replyThread', + ); + } return (
{ avatar } @@ -709,10 +718,7 @@ module.exports = withMatrixClient(React.createClass({ { timestamp } { this._renderE2EPadlock() } - { - this.props.tileShape === 'reply_preview' - && ReplyThread.makeThread(this.props.mxEvent, this.props.onWidgetLoad, this.props.permalinkCreator, 'replyThread') - } + { thread }
@@ -735,7 +747,7 @@ module.exports = withMatrixClient(React.createClass({ { timestamp } { this._renderE2EPadlock() } - { ReplyThread.makeThread(this.props.mxEvent, this.props.onWidgetLoad, this.props.permalinkCreator, 'replyThread') } + { thread }