From d46d48065744823b5a0fbc6d8bc0860395355cd8 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 15 Jul 2018 12:15:30 +0300 Subject: Unread badges in feeds --- vnext/src/components/Message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext/src/components') 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 }) { {data.replies > 0 && - (data.unread ? ( - ${data.replies} + (visitor.unread && visitor.unread.includes(data.mid) ? ( + {data.replies} ) : ( `${data.replies}` )) -- cgit v1.2.3