xatkit-bot-platform / xatkit-chat-widget

(React) Chat widget for Xatkit
https://xatkit.com
MIT License
6 stars 2 forks source link

Fallback intent when reloading the session with autoClear: false #66

Open gdaniel opened 3 years ago

gdaniel commented 3 years ago

How to reproduce: run the greetings bot example with a widget configured as follows:

xatkit.renderXatkitWidget({
    "server": "https://prod.xatkit.com/wordpress/custom/xat-bot/chat-handler",
    "username": "Alice",
    "storage": {
        "autoClear": false
    }
})

The bot will print the fallback message "Sorry I didn't get it" when reloading the page.

I haven't explored this issue much. In particular I don't know if this is related to the type of storage we use (local or session)

hamzaed commented 3 years ago

It's not related to the type of storage. The behavior is the same in both local and session.