@@ -1214,21 +1214,24 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
12141214 msgOption = readAvatars ;
12151215 }
12161216
1217- const replyChain =
1218- ( haveRendererForEvent ( this . props . mxEvent ) && shouldDisplayReply ( this . props . mxEvent ) )
1219- ? < ReplyChain
1220- parentEv = { this . props . mxEvent }
1221- onHeightChanged = { this . props . onHeightChanged }
1222- ref = { this . replyChain }
1223- forExport = { this . props . forExport }
1224- permalinkCreator = { this . props . permalinkCreator }
1225- layout = { this . props . layout }
1226- alwaysShowTimestamps = { this . props . alwaysShowTimestamps || this . state . hover }
1227- isQuoteExpanded = { isQuoteExpanded }
1228- setQuoteExpanded = { this . setQuoteExpanded }
1229- getRelationsForEvent = { this . props . getRelationsForEvent }
1230- />
1231- : null ;
1217+ let replyChain ;
1218+ if (
1219+ haveRendererForEvent ( this . props . mxEvent , this . context . showHiddenEvents ) &&
1220+ shouldDisplayReply ( this . props . mxEvent )
1221+ ) {
1222+ replyChain = < ReplyChain
1223+ parentEv = { this . props . mxEvent }
1224+ onHeightChanged = { this . props . onHeightChanged }
1225+ ref = { this . replyChain }
1226+ forExport = { this . props . forExport }
1227+ permalinkCreator = { this . props . permalinkCreator }
1228+ layout = { this . props . layout }
1229+ alwaysShowTimestamps = { this . props . alwaysShowTimestamps || this . state . hover }
1230+ isQuoteExpanded = { isQuoteExpanded }
1231+ setQuoteExpanded = { this . setQuoteExpanded }
1232+ getRelationsForEvent = { this . props . getRelationsForEvent }
1233+ /> ;
1234+ }
12321235
12331236 const isOwnEvent = this . props . mxEvent ?. sender ?. userId === MatrixClientPeg . get ( ) . getUserId ( ) ;
12341237
@@ -1267,7 +1270,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
12671270 highlightLink : this . props . highlightLink ,
12681271 onHeightChanged : this . props . onHeightChanged ,
12691272 permalinkCreator : this . props . permalinkCreator ,
1270- } ) }
1273+ } , this . context . showHiddenEvents ) }
12711274 </ div > ,
12721275 ] ) ;
12731276 }
@@ -1309,7 +1312,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
13091312 highlightLink : this . props . highlightLink ,
13101313 onHeightChanged : this . props . onHeightChanged ,
13111314 permalinkCreator : this . props . permalinkCreator ,
1312- } ) }
1315+ } , this . context . showHiddenEvents ) }
13131316 { actionBar }
13141317 < a href = { permalink } onClick = { this . onPermalinkClicked } >
13151318 { timestamp }
@@ -1395,7 +1398,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
13951398 highlightLink : this . props . highlightLink ,
13961399 onHeightChanged : this . props . onHeightChanged ,
13971400 permalinkCreator : this . props . permalinkCreator ,
1398- } ) }
1401+ } , this . context . showHiddenEvents ) }
13991402 </ div > ,
14001403 < a
14011404 className = "mx_EventTile_senderDetailsLink"
@@ -1448,7 +1451,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
14481451 highlightLink : this . props . highlightLink ,
14491452 onHeightChanged : this . props . onHeightChanged ,
14501453 permalinkCreator : this . props . permalinkCreator ,
1451- } ) }
1454+ } , this . context . showHiddenEvents ) }
14521455 { keyRequestInfo }
14531456 { actionBar }
14541457 { this . props . layout === Layout . IRC && < >
0 commit comments