Unread Conversations in HubSpot Chat Widget

Hi!

I was using the HubSpot chat widget, and I noticed one of the features was to check the number of unread conversations. I.e.:

window.HubSpotConversations.on('unreadConversationCountChanged', payload => {
 console.log(`New unread count is ${payload.unreadCount}!`);
});

I was wondering what exactly was the way HubSpot determined when a conversation was read and if it was possible to manually trigger a read ourselves.

I ask this because we have built a custom component that wraps around the HubSpot chat widget, and when the chat widget is opened, our desired functionality is to mark the conversation as read.

Hi, @SamratSahoo :waving_hand: Thanks for reaching out. Let’s see if the community has any suggestions — hey @Mike_Eastwood @himanshurauthan do you have any experience you can share? Or other ways you might tackle this project?

Best,

Jaycee