walterholohan / react-native-crisp-chat-sdk

React-Native bridge for Crisp Chat iOS and Android SDK's
MIT License
70 stars 26 forks source link

Reset session only reset the chat if the app is closed #126

Open dutrasr opened 1 month ago

dutrasr commented 1 month ago

Hello everyone,

I'm facing an issue with the reset session feature. Within my app both guest and authenticated users have access to the crisp chat. When the user login we reset the session, set the session token for that user to retrieve previous conversations and after logout we call the reset session again to clear everything.

The reset session call seems to work fine when the user login, but when they logout the reset session is persisted only if the user close the app. If, for some reason, the user logout and decides to open the chat the messages exchanged are still there. After that, even closing the app don't reset the user session.

I'm using the latest version (0.14.1) and I was able to replicate this in both android and iOS. Does anyone notice this behavior before?