keithbaileys 1.0.0 → 1.0.2
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.
- package/LICENSE +1 -1
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Socket/gcstatus.js +1 -1
- package/lib/Socket/messages-recv.js +5 -4
- package/lib/Socket/messages-send.js +344 -618
- package/lib/Socket/newsletter.js +1 -1
- package/lib/Utils/decode-wa-message.js +33 -82
- package/lib/Utils/generics.js +3 -3
- package/lib/Utils/index.js +0 -1
- package/lib/Utils/process-message.js +1 -5
- package/package.json +1 -1
- package/WAProto/Keith +0 -1
- package/lib/Defaults/Keith +0 -1
- package/lib/Signal/Group/Keith +0 -1
- package/lib/Socket/Client/Keith +0 -1
- package/lib/Socket/Keith +0 -1
- package/lib/Types/Keith +0 -1
- package/lib/Utils/Keith +0 -1
- package/lib/Utils/lid-mapping.js +0 -88
- package/lib/WABinary/Kk +0 -1
- package/lib/WAM/keith +0 -1
- package/lib/WAUSync/Protocols/Keith +0 -1
- package/lib/WAUSync/keith +0 -1
- package/test.js +0 -7
package/LICENSE
CHANGED
package/lib/Socket/gcstatus.js
CHANGED
|
@@ -594,16 +594,17 @@ const makeMessagesRecvSocket = (config) => {
|
|
|
594
594
|
try {
|
|
595
595
|
await Promise.all([
|
|
596
596
|
processingMutex.mutex(async () => {
|
|
597
|
-
var _a
|
|
597
|
+
var _a;
|
|
598
598
|
const msg = await processNotification(node);
|
|
599
599
|
if (msg) {
|
|
600
|
-
const
|
|
601
|
-
const
|
|
602
|
-
const fromMe = (0, WABinary_1.areJidsSameUser)(participantOrRemote, isLidParticipant ? ((_b = authState.creds.me) === null || _b === void 0 ? void 0 : _b.lid) : ((_c = authState.creds.me) === null || _c === void 0 ? void 0 : _c.id));
|
|
600
|
+
const fromMe = (0, WABinary_1.areJidsSameUser)(node.attrs.participant || remoteJid, authState.creds.me.id);
|
|
601
|
+
const { senderAlt: notifParticipantAlt, addressingMode: notifAddrMode } = (0, Utils_1.extractAddressingContext)(node);
|
|
603
602
|
msg.key = {
|
|
604
603
|
remoteJid,
|
|
605
604
|
fromMe,
|
|
606
605
|
participant: node.attrs.participant,
|
|
606
|
+
participantAlt: notifParticipantAlt,
|
|
607
|
+
addressingMode: notifAddrMode,
|
|
607
608
|
id: node.attrs.id,
|
|
608
609
|
...(msg.key || {})
|
|
609
610
|
};
|