Lirim
Lirim

Reputation: 21

How to reset/clear conversation in webchat react.js?

I have a button in webchat, when i click in this button i need to reset conversation and start a new conversation. Can you help me about this with any code snipets. Thanks

Upvotes: 1

Views: 783

Answers (1)

tdurnford
tdurnford

Reputation: 3712

You need to replace the Web Chat store and create a new Direct Line connection to restart the conversation. There is currently a bug in v4.5 that won't allow you to do this; however, the issue has been resolved in v4.6 which should be released towards the end of the month. There is a pull request open in the Web Chat repo to add a Clear Conversation After Idle Sample that will be merged when v4.6 is released.

Upvotes: 1

Related Questions