diff --git a/package.json b/package.json index 999a961..78482ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meta-horizonn", - "version": "1.3.8", + "version": "1.3.9", "description": "Facebook-Chat-API Protect and Deploy by Kanzu and HZI Team. Kem is redeveloped. Rename package is Meta Horizonn and package supported ChatBot Messenger.", "main": "index.js", "scripts": { diff --git a/src/listenMqtt.js b/src/listenMqtt.js index 1bca915..d546c83 100644 --- a/src/listenMqtt.js +++ b/src/listenMqtt.js @@ -837,8 +837,6 @@ function markDelivery(ctx, api, threadID, messageID) { } } - - module.exports = function(defaultFuncs, api, ctx) { var globalCallback = identity; var okeoke; @@ -853,9 +851,9 @@ module.exports = function(defaultFuncs, api, ctx) { .then(utils.parseAndCheckLogin(ctx, defaultFuncs)) .then((resData) => { if (utils.getType(resData) != "Array") { - if (resData.request.uri && resData.request.uri.href.includes("https://www.facebook.com/checkpoint/")) { - if (resData.request.uri.href.includes('601051028565049')) { - return global.Fca.BypassAutomationNotification(undefined, ctx.jar, ctx.globalOptions, undefined ,process.env.UID) + if (okeoke.request.uri && okeoke.request.uri.href.includes("https://www.facebook.com/checkpoint/")) { + if (okeoke.request.uri.href.includes('601051028565049')) { + return global.Fca.BypassAutomationNotification(undefined, ctx.jar, ctx.globalOptions, undefined, process.env.UID) } } if (global.Fca.Require.FastConfig.AutoLogin) {