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

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


beforeDisplay is not working in case of Bots.sendMessage



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.


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