diff options
author | Vitaly Takmazov | 2018-07-15 12:15:30 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | d46d48065744823b5a0fbc6d8bc0860395355cd8 (patch) | |
tree | 05b79e4efa1e5ecfd8272aa456563406ff275ab8 /vnext/src/components | |
parent | 049f4eb108b4680e6f560a612540819ee999a1f0 (diff) |
Unread badges in feeds
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Message.js | 4 |
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}` )) |