Livestream: fix items incorrectly appearing in HyperChat List mode.

This commit is contained in:
infinite-persistence 2021-08-25 13:10:05 +08:00
parent 3afec516d3
commit e8c4fb3b7d
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -238,7 +238,7 @@ export default function LivestreamComments(props: Props) {
</div>
)}
{pinnedComment && (
{pinnedComment && viewMode === VIEW_MODE_CHAT && (
<div className="livestream-pinned__wrapper">
<LivestreamComment
key={pinnedComment.comment_id}
@ -296,7 +296,7 @@ export default function LivestreamComments(props: Props) {
<div className="main--empty" style={{ flex: 1 }} />
)}
{scrollPos < 0 && (
{scrollPos < 0 && viewMode === VIEW_MODE_CHAT && (
<Button
button="secondary"
className="livestream__comments__scroll-to-recent"