1
0
Fork 0
forked from Mirrors/gomuks

web/timeline: don't render url previews on hidden events

This commit is contained in:
Tulir Asokan 2024-12-23 12:03:06 +02:00
parent 5fae264802
commit 266116f237

View file

@ -215,7 +215,7 @@ const TimelineEvent = ({ evt, prevEvt, disableMenu, smallReplies }: TimelineEven
{replyInMessage} {replyInMessage}
<ContentErrorBoundary> <ContentErrorBoundary>
<BodyType room={roomCtx.store} sender={memberEvt} event={evt}/> <BodyType room={roomCtx.store} sender={memberEvt} event={evt}/>
<URLPreviews room={roomCtx.store} event={evt}/> {!isSmallBodyType && <URLPreviews room={roomCtx.store} event={evt}/>}
</ContentErrorBoundary> </ContentErrorBoundary>
{evt.reactions ? <EventReactions reactions={evt.reactions}/> : null} {evt.reactions ? <EventReactions reactions={evt.reactions}/> : null}
</div> </div>