You need to sign in to do that
Don't have an account?
Sapana J
Embedded Chat - How to get unread message count
In embedded chat, after chat window get minimized I want to show only number count of unread messages like only 2, not like "2 messages" (which is currently displayed). How can I customize chat button when minimized. Is there and event or javascript function I can use to get count of unread chat messages.
https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_lightning_components_minimized_samples.htm
All Answers
I see that in the documentation of embedded services I see that there is already a built in way to access chatUnreadMessage can you try checking the below documentation once:
>> https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_minimized_events.htm
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
Thank you for your reply.
I actually went through this document, but I didn't get how to call/use this event in javascript. Could you please help me in this.
Thanks & Regards,
Sapana
https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_lightning_components_minimized_samples.htm