# Conversations SDK Unread Count

**URL:** <https://community.hubspot.com/t/conversations-sdk-unread-count/134085>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [June 6, 2025, 11:29am UTC](https://community.hubspot.com/t/conversations-sdk-unread-count/134085 "2025-06-06T11:29:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tmedflex](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Tmedflex](https://community.hubspot.com/u/Tmedflex)\
**Post date:** [June 6, 2025, 11:29am UTC](https://community.hubspot.com/t/conversations-sdk-unread-count/134085/1 "2025-06-06T11:29:30Z")

</div>

The unread count of a chat doesn’t seem to updaten when I open the chat that has an unread message.

I use following settings

window.hsConversationsSettings = {  
loadImmediately: false,  
inlineEmbedSelector: ‘#hubspot-chat’,  
enableWidgetCookieBanner: false,  
};

When I remove the inlineEmbedSelector and open the chat, the unreadConversationCountChanged event is triggered and the unreadCount is set back to 0. But with inlineEmbedSelector set, the event is not received by the event handler and the unreadCount stays at 1. The red dot in the chat widget stays there, too. No matter how much I interact with the chat widget. I can switch between chats, type in the chat, but it doesnt change.

Only when I refresh the page, the unreadCount is set back to 0. How can I fix this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 6, 2025, 9:39pm UTC](https://community.hubspot.com/t/conversations-sdk-unread-count/134085/2 "2025-06-06T21:39:32Z")

</div>

Hey, @Tmedflex 👋 This one is tough to troubleshoot by our community members without being able to examine it happening in action. Have you tried setting up a really simple test to try to rule out conflicts? Without a link or way to see it in action, it’s likely that community help will be limited.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Tmedflex](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Tmedflex](https://community.hubspot.com/u/Tmedflex)\
**Post date:** [June 12, 2025, 9:23am UTC](https://community.hubspot.com/t/conversations-sdk-unread-count/134085/3 "2025-06-12T09:23:31Z")

</div>

Hi I created a code sandbox for it.

[https://codesandbox.io/p/sandbox/6sjxgp](https://codesandbox.io/p/sandbox/6sjxgp)

You need to add your own tracking code URL to public/index.html. and add the URL of the sandbox to targets in a chatflow. Then it should work.

---

<div class="post-metadata">

**Author:** ![Tmedflex](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Tmedflex](https://community.hubspot.com/u/Tmedflex)\
**Post date:** [June 16, 2025, 12:12pm UTC](https://community.hubspot.com/t/conversations-sdk-unread-count/134085/4 "2025-06-16T12:12:10Z")

</div>

Hi I created a code sandbox for it.

[https://codesandbox.io/p/sandbox/6sjxgp](https://codesandbox.io/p/sandbox/6sjxgp)

You need to add your own tracking code URL to public/index.html. and add the URL of the sandbox to targets in a chatflow. Then it should work.
