Conversations SDK Unread Count

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?

Hey, @Tmedflex :waving_hand: 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

Hi I created a code sandbox for it.

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.

Hi I created a code sandbox for it.

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.