aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-15 12:15:30 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitd46d48065744823b5a0fbc6d8bc0860395355cd8 (patch)
tree05b79e4efa1e5ecfd8272aa456563406ff275ab8 /vnext/src/components
parent049f4eb108b4680e6f560a612540819ee999a1f0 (diff)
Unread badges in feeds
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/Message.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index 0ff68c7b..ad79f7f6 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -69,8 +69,8 @@ export default function Message({ data, visitor, children, ...rest }) {
<span className="msg-button-icon">
<Icon name="ei-comment" size="s" />
{data.replies > 0 &&
- (data.unread ? (
- <span className="badge">${data.replies}</span>
+ (visitor.unread && visitor.unread.includes(data.mid) ? (
+ <span className="badge">{data.replies}</span>
) : (
`${data.replies}`
))