@open-wa/wa-automate 4.33.4 → 4.33.5

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.
@@ -59,7 +59,7 @@ const UPLOAD_CLOUD = (message, client) => __awaiter(void 0, void 0, void 0, func
59
59
  if (!uploadQueue) {
60
60
  uploadQueue = new p_queue_1.default({ concurrency: 2, interval: 1000, carryoverConcurrencyCount: true, intervalCap: 2 });
61
61
  }
62
- const filename = `${message.id.split("_").slice(-1)[0]}.${mime_1.default.extension(message.mimetype)}`;
62
+ const filename = `${message.id.split("_").find(x => !x.includes("@") && x.length > 6) || `${Date.now()}`}.${mime_1.default.extension(message.mimetype)}`;
63
63
  const mediaData = yield client.decryptMedia(message);
64
64
  if (!cloudUploadOptions)
65
65
  return message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.33.4",
3
+ "version": "4.33.5",
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",