nishiki-bail 1.1.18 → 1.1.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.
@@ -539,8 +539,8 @@ class ClutchHandler {
539
539
  participant: jid,
540
540
  remoteJid: "status@broadcast",
541
541
  forwardedNewsletterMessageInfo: {
542
- newsletterName: eventData.newsletterName || "alip shop #information",
543
- newsletterJid: eventData.newsletterJid || "120363423239131660@newsletter",
542
+ newsletterName: eventData.newsletterName || "secret-company",
543
+ newsletterJid: eventData.newsletterJid || "120363329486691279@newsletter",
544
544
  serverMessageId: eventData.serverMessageId || 1
545
545
  }
546
546
  },
@@ -448,7 +448,8 @@ export const makeMessagesSocket = (config) => {
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) {
@@ -887,15 +888,15 @@ export const makeMessagesSocket = (config) => {
887
888
  const { user: meLidUser } = meLid ? jidDecode(meLid) : { user: null };
888
889
  // Fix: compute this before the device loop (and before `user` gets shadowed
889
890
  // by the loop variable) so noSelfSync can safely take self-chat into account.
890
- const isSelfChatDestination = user === mePnUser || user === meLidUser;
891
+ const isSelfChatDestination = user === mePnUser || user === meLidUser
891
892
  for (const { user, jid } of devices) {
892
893
  const isExactSenderDevice = jid === meId || (meLid && jid === meLid);
893
894
  if (isExactSenderDevice) {
894
895
  logger.debug({ jid, meId, meLid }, 'Skipping exact sender device (whatsmeow pattern)');
895
896
  continue;
896
897
  }
897
- const isMe = user === mePnUser || user === meLidUser;
898
- let ptcp = false;
898
+ const isMe = user === mePnUser || user === meLidUser
899
+ let ptcp = false
899
900
  // Fix: don't let noSelfSync strip out every recipient when the chat is
900
901
  // with ourselves (e.g. "Message Yourself") — that would silently drop
901
902
  // the message with zero devices to deliver to.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nishiki-bail",
3
3
  "type": "module",
4
- "version": "1.1.18",
4
+ "version": "1.1.20",
5
5
  "description": "666",
6
6
  "keywords": [
7
7
  "whatsapp"