BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Web chat event are not working after page refresh

Open srinutamada opened this issue 6 years ago • 2 comments

I am using web chat and implemented chat persistence by doing DOM manipulation.

I am able to show previous history on page refresh or navigating the different pages. But if user click on events like button which were present in the history then those event are not working. Even I extended my logic to trigger click events and even then send message is not working.

I see no errors. So, let me know if my approach is right or not and if there is any way to implement chat persistent.

Note: Our approach is working fine in .NET web application but the same is not working in Salesforce.

srinutamada avatar Sep 23 '20 16:09 srinutamada

@stevkan Can you repro this?

tdurnford avatar Sep 23 '20 18:09 tdurnford

The issue is resolved. I removed DOM manipulation from the logic and used DirectLine properties by setting conversationId: and DirectLine:false.

I tested and it worked like a charm.

srinutamada avatar Sep 24 '20 06:09 srinutamada