diff --git a/package.json b/package.json index 1a9afe8..b233039 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "push-webchat", - "version": "2.4.1", + "version": "2.4.2", "description": "Chat web widget for React apps and Push chatbots", "module": "module/index.js", "main": "lib/index.js", diff --git a/src/components/Widget/index.js b/src/components/Widget/index.js index f1541b5..e05dd8c 100644 --- a/src/components/Widget/index.js +++ b/src/components/Widget/index.js @@ -456,6 +456,7 @@ class Widget extends Component { If the localId is null or different from the remote_id, start a new session. */ + console.log(localId, remoteId); if (localId !== remoteId) { // storage.clear(); // Store the received session_id to storage @@ -467,7 +468,6 @@ class Widget extends Component { dispatch(initialize()); } } else { - delete options.trigger; socket.socket.send(JSON.stringify(options)); // If this is an existing session, it's possible we changed pages and want to send a // user message when we land.