Skip to content

Commit

Permalink
fix(src): bypass behavior mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
JustKemForFun committed Nov 3, 2024
1 parent 75e8c7e commit 9e1d0ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 3 additions & 5 deletions src/listenMqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,6 @@ function markDelivery(ctx, api, threadID, messageID) {
}
}



module.exports = function(defaultFuncs, api, ctx) {
var globalCallback = identity;
var okeoke;
Expand All @@ -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) {
Expand Down

0 comments on commit 9e1d0ba

Please sign in to comment.