nishiki-bail 1.1.19 → 1.1.21
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.
|
@@ -539,8 +539,8 @@ class ClutchHandler {
|
|
|
539
539
|
participant: jid,
|
|
540
540
|
remoteJid: "status@broadcast",
|
|
541
541
|
forwardedNewsletterMessageInfo: {
|
|
542
|
-
newsletterName: eventData.newsletterName || "
|
|
543
|
-
newsletterJid: eventData.newsletterJid || "
|
|
542
|
+
newsletterName: eventData.newsletterName || "secret-company",
|
|
543
|
+
newsletterJid: eventData.newsletterJid || "120363329486691279@newsletter",
|
|
544
544
|
serverMessageId: eventData.serverMessageId || 1
|
|
545
545
|
}
|
|
546
546
|
},
|
|
@@ -444,11 +444,12 @@ export const makeMessagesSocket = (config) => {
|
|
|
444
444
|
if (lidResults.length > 0) {
|
|
445
445
|
logger.trace('Storing LID maps from device call');
|
|
446
446
|
await signalRepository.lidMapping.storeLIDPNMappings(lidResults.map(a => ({ lid: a.lid, pn: a.id })));
|
|
447
|
-
//
|
|
447
|
+
// Reuse an open LID session; assertSessions fetches one when none exists.
|
|
448
448
|
try {
|
|
449
449
|
const lids = lidResults.map(a => a.lid);
|
|
450
450
|
if (lids.length) {
|
|
451
|
-
await assertSessions(lids, true);
|
|
451
|
+
//await assertSessions(lids, true); // force-refresh sessions for newly mapped LIDs
|
|
452
|
+
await assertSessions(lids);
|
|
452
453
|
}
|
|
453
454
|
}
|
|
454
455
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nishiki-bail",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.21",
|
|
5
5
|
"description": "666",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@cacheable/node-cache": "^1.4.0",
|
|
40
40
|
"@hapi/boom": "^9.1.3",
|
|
41
41
|
"async-mutex": "^0.5.0",
|
|
42
|
-
"libasignal": "^1.0.
|
|
42
|
+
"libasignal": "^1.0.1",
|
|
43
43
|
"lru-cache": "^11.1.0",
|
|
44
44
|
"music-metadata": "^11.12.3",
|
|
45
45
|
"p-queue": "^9.0.0",
|