chat-platform 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/chat-platform.js +2 -12
  2. package/package.json +1 -1
package/chat-platform.js CHANGED
@@ -261,12 +261,7 @@ const ChatExpress = function(options) {
261
261
  return contextProvider.get(
262
262
  parsedMessage.chatId,
263
263
  parsedMessage.userId,
264
- {
265
- userId: this.originalMessage.userId,
266
- transport: this.originalMessage.transport,
267
- chatId: this.originalMessage.chatId,
268
- chatbotId: this.originalMessage.chatbotId
269
- }
264
+ { userId: this.originalMessage.userId, transport: this.originalMessage.transport, chatId: this.originalMessage.chatId }
270
265
  );
271
266
  },
272
267
  api: function() {
@@ -289,12 +284,7 @@ const ChatExpress = function(options) {
289
284
  .then(() => when(contextProvider.getOrCreate(
290
285
  parsedMessage.chatId,
291
286
  parsedMessage.userId,
292
- {
293
- userId: parsedMessage.userId,
294
- transport: parsedMessage.transport,
295
- chatId: parsedMessage.chatId,
296
- chatbotId: options.chatbotId
297
- }
287
+ { userId: parsedMessage.userId, transport: parsedMessage.transport, chatId: parsedMessage.chatId }
298
288
  )))
299
289
  .then(chatContext => when(chatContext.set({ language: parsedMessage.language, authorized: false, pending: false })))
300
290
  .then(function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chat-platform",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Universal Chat Platform",
5
5
  "main": "index.js",
6
6
  "scripts": {