microsoft / omnichannel-chat-sdk

Headless Chat SDK to build your own chat widget against Dynamics 365 Omnichannel Services.
MIT License
42 stars 41 forks source link

Chat sdk persistent chat - fixes #208

Closed gitanjuvs closed 1 year ago

gitanjuvs commented 1 year ago

This PR includes the fixes for the following scenarios,

  1. ChatSDK.endChat() without any reconnect id should call session close with isPersistentChat=true as query params Fix added: Modified code to check the persistent chat started with a different authenticated chat user.
  2. ChatSDK.startChat() should have a reconnect id if there's an existing chat session Fix added: Modified code to start a persistent chat before validation.