latest using: https://cdn.botframework.com/botframework-webchat/latest/webchat.js
We have a webchat window on our website that can be minimized/reopened (this keeps the same token, if still valid) or closed/reopened (this ensures we retrieve a new token). Our bot should greet us when we dispatch an event to the bot. When following a specific pattern, the webchat sticks on the "WEB_CHAT/SET_REFERENCE_GRAMMAR_ID" action and our bot does not greet us with our welcome message.
You will not be greeted and, in the developer console, the last action written is ">>> HTML DISPATCH action: WEB_CHAT/SET_REFERENCE_GRAMMAR_ID"
If you move the below line of code from the "closeChat" function to the "minimizeChat" function, the bot will properly greet us.
store.dispatch({type: 'DIRECT_LINE/DISCONNECT'});
[Bug]
@corinagum : Can you take a look?
@waltec888, Please take a look at our minimizable Web Chat sample. sample 06.a. This is using React.
For recomposing the UI, Web Chat only officially supports doing so via React, seen on our README.md
For further implementation questions, I recommend taking this conversation to Stack Overflow.