@open-wa/wa-automate 4.32.7 → 4.32.10

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.
@@ -132,7 +132,7 @@ const setupChatwootOutgoingMessageHandler = (cliConfig, client) => __awaiter(voi
132
132
  const getContactConversation = (number) => __awaiter(void 0, void 0, void 0, function* () {
133
133
  try {
134
134
  const { data } = yield cwReq(`contacts/${contactReg[number]}/conversations`, 'get');
135
- return data.payload.sort((a, b) => a.id - b.id)[0];
135
+ return data.payload.filter(c => c.inbox_id === resolvedInbox).sort((a, b) => a.id - b.id)[0];
136
136
  }
137
137
  catch (error) {
138
138
  return;
@@ -103,8 +103,7 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
103
103
  const cacheEnabled = (config === null || config === void 0 ? void 0 : config.cacheEnabled) === false ? false : true;
104
104
  const blockCrashLogs = (config === null || config === void 0 ? void 0 : config.blockCrashLogs) === false ? false : true;
105
105
  setupPromises.push(waPage.setBypassCSP((config === null || config === void 0 ? void 0 : config.bypassCSP) || false));
106
- if (!(config === null || config === void 0 ? void 0 : config.multiDevice))
107
- setupPromises.push(waPage.setCacheEnabled(cacheEnabled));
106
+ setupPromises.push(waPage.setCacheEnabled(cacheEnabled));
108
107
  const blockAssets = !(config === null || config === void 0 ? void 0 : config.headless) ? false : (config === null || config === void 0 ? void 0 : config.blockAssets) || false;
109
108
  if (blockAssets) {
110
109
  const { default: block } = yield Promise.resolve().then(() => __importStar(require('puppeteer-extra-plugin-block-resources')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.32.7",
3
+ "version": "4.32.10",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",
@@ -144,7 +144,7 @@
144
144
  "patch-package": "^6.2.2",
145
145
  "pico-s3": "^1.0.1",
146
146
  "postman-2-swagger": "^0.5.0",
147
- "puppeteer": "^13.0.0",
147
+ "puppeteer": "^13.5.1",
148
148
  "puppeteer-extra": "^3.2.3",
149
149
  "puppeteer-extra-plugin-block-resources": "^2.3.0",
150
150
  "puppeteer-extra-plugin-devtools": "^2.3.3",