WebchatWidget icon indicating copy to clipboard operation
WebchatWidget copied to clipboard

Added webchat.clearMessages() function

Open mbrau12s opened this issue 3 years ago • 2 comments

One of our customers requested this feature, would be nice if you could merge it! :)

mbrau12s avatar Jan 25 '22 17:01 mbrau12s

Hi @mbrau12s, Thank you for actively contributing to the WebchatWidget!

I'm happy to add this functionality, but we'll need to do the following additional things first:

  • the "API Documentation" should be updated as well featuring a small explanation and a code example (docs/webchat-api.md)
  • to avoid breaking this, we should add automated tests which check that
    • the history is cleared when the webchat is open
    • that the "unread message badge" and "unread message preview" are cleared when the webchat is not open and has unread messages
    • the history stays cleared after the page reloads using the same userId and sessionId

If you want, I can help you with the automated tests. Just let me know :)

pedily avatar Jan 28 '22 16:01 pedily

Is it possible to get the requirements from @pedily done and the PR merged?

dheckl avatar Sep 05 '22 10:09 dheckl