Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Hide message in the new web SDK

edited Jan 18, 2020 3:28PM in Digital Assistant & Mobile 6 comments

Summary

beforeDisplay is not working in case of Bots.sendMessage

Content

Hi,

I'm using the new web SDK to replace Smooch Plugin, I noticed that delegate beforeDisplay is not implemented to work in case of Bots.sendMessage.

So in case i want to hide a specific message sent by the user what should i do ?

Note : For the initiation message >> initUserHiddenMessage: "Hello", the current implementation sends this meesage everytime the user refresh the plugin web page, so in case the user keeps the history from localstorage and wants to refresh the page and continue on his previous messages , the flow will be corrupted since initUserHiddenMessage: "Hello" will be sent again.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!