@ryuu-reinzz/haruka-lib 1.2.19 → 1.2.20

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.
Files changed (2) hide show
  1. package/main/socket.js +7 -1
  2. package/package.json +1 -1
package/main/socket.js CHANGED
@@ -273,6 +273,12 @@ Object.assign(socket, {
273
273
  mediaInput.document = { url: document };
274
274
  }
275
275
 
276
+ if (fileName) {
277
+ if (typeof mediaInput.document === "object") {
278
+ mediaInput.document.fileName = fileName;
279
+ }
280
+ }
281
+
276
282
  if (mimetype) {
277
283
  if (typeof mediaInput.document === "object") {
278
284
  mediaInput.document.mimetype = mimetype;
@@ -391,7 +397,7 @@ Object.assign(socket, {
391
397
  mediaType: externalAdReply.mediaType || 1,
392
398
  sourceUrl: externalAdReply.sourceUrl || externalAdReply.url || "",
393
399
  thumbnailUrl:
394
- externalAdReply.thumbnailUrl || externalAdReply.thumbnail || "",
400
+ externalAdReply.thumbnailUrl || "",
395
401
  renderLargerThumbnail: externalAdReply.renderLargerThumbnail || false,
396
402
  showAdAttribution: externalAdReply.showAdAttribution !== false,
397
403
  containsAutoReply: externalAdReply.containsAutoReply || false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuu-reinzz/haruka-lib",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",