aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}`
))