meta-horizonn 1.3.8 → 1.4.0

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.
package/Main.js CHANGED
@@ -440,7 +440,7 @@ else userID = maybeUser[0].cookieString().split("=")[1].toString();
440
440
  switch (Slot.indexOf(MQTT)) {
441
441
  case 0: {
442
442
  irisSeqID = CHECK_MQTT[MQTT][1];
443
- mqttEndpoint = CHECK_MQTT[MQTT][2];
443
+ mqttEndpoint = CHECK_MQTT[MQTT][2].replace(/\\\//g, "/");
444
444
  region = new URL(mqttEndpoint).searchParams.get("region").toUpperCase();
445
445
  return;
446
446
  }
@@ -451,14 +451,14 @@ else userID = maybeUser[0].cookieString().split("=")[1].toString();
451
451
  return;
452
452
  }
453
453
  case 2: {
454
- mqttEndpoint = CHECK_MQTT[MQTT][4];
454
+ mqttEndpoint = CHECK_MQTT[MQTT][2].replace(/\\\//g, "/"); // is important lmao f?
455
455
  region = new URL(mqttEndpoint).searchParams.get("region").toUpperCase();
456
456
  return;
457
457
  }
458
458
  }
459
459
  return;
460
460
  }
461
- });
461
+ });
462
462
 
463
463
  const regions = [
464
464
  {
@@ -1255,7 +1255,7 @@ try {
1255
1255
  .then(function(res){
1256
1256
  // console.log('okay');
1257
1257
  // global.Fca.Require.fs.writeFileSync('./AAAAA.html', JSON.stringify(res.body, null, 2));
1258
- var html = res.body,Obj = buildAPI(globalOptions, html, jar, bypass_region_err);
1258
+ var html = res.body, Obj = buildAPI(globalOptions, html, jar, bypass_region_err);
1259
1259
  ctx = Obj.ctx;
1260
1260
  api = Obj.api;
1261
1261
  // process.env.api = Obj.api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-horizonn",
3
- "version": "1.3.8",
3
+ "version": "1.4.0",
4
4
  "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.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/listenMqtt.js CHANGED
@@ -837,8 +837,6 @@ function markDelivery(ctx, api, threadID, messageID) {
837
837
  }
838
838
  }
839
839
 
840
-
841
-
842
840
  module.exports = function(defaultFuncs, api, ctx) {
843
841
  var globalCallback = identity;
844
842
  var okeoke;
@@ -853,9 +851,9 @@ module.exports = function(defaultFuncs, api, ctx) {
853
851
  .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
854
852
  .then((resData) => {
855
853
  if (utils.getType(resData) != "Array") {
856
- if (resData.request.uri && resData.request.uri.href.includes("https://www.facebook.com/checkpoint/")) {
857
- if (resData.request.uri.href.includes('601051028565049')) {
858
- return global.Fca.BypassAutomationNotification(undefined, ctx.jar, ctx.globalOptions, undefined ,process.env.UID)
854
+ if (okeoke.request.uri && okeoke.request.uri.href.includes("https://www.facebook.com/checkpoint/")) {
855
+ if (okeoke.request.uri.href.includes('601051028565049')) {
856
+ return global.Fca.BypassAutomationNotification(undefined, ctx.jar, ctx.globalOptions, undefined, process.env.UID)
859
857
  }
860
858
  }
861
859
  if (global.Fca.Require.FastConfig.AutoLogin) {
package/utils.js CHANGED
@@ -3085,5 +3085,6 @@ module.exports = {
3085
3085
  decodeClientPayload,
3086
3086
  getAppState,
3087
3087
  getAdminTextMessageType,
3088
- setProxy
3088
+ setProxy,
3089
+ getFroms
3089
3090
  };