@realvare/based 2.7.0 → 2.7.1
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.
|
@@ -237,7 +237,7 @@ const makeMessagesRecvSocket = (config) => {
|
|
|
237
237
|
};
|
|
238
238
|
const handleGroupNotification = (participant, child, msg) => {
|
|
239
239
|
var _a, _b, _c, _d;
|
|
240
|
-
const participantJid = ((_b = (_a = (0, WABinary_1.getBinaryNodeChild)(child, 'participant')) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b.jid) || participant;
|
|
240
|
+
const participantJid = WABinary_1.lidToJid(((_b = (_a = (0, WABinary_1.getBinaryNodeChild)(child, 'participant')) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b.jid) || participant);
|
|
241
241
|
switch (child === null || child === void 0 ? void 0 : child.tag) {
|
|
242
242
|
case 'create':
|
|
243
243
|
const metadata = (0, groups_1.extractGroupMetadata)(child);
|
|
@@ -265,7 +265,7 @@ const makeMessagesRecvSocket = (config) => {
|
|
|
265
265
|
break;
|
|
266
266
|
case 'modify':
|
|
267
267
|
const oldNumber = (0, WABinary_1.getBinaryNodeChildren)(child, 'participant').map(p => p.attrs.jid);
|
|
268
|
-
msg.messageStubParameters = oldNumber || [];
|
|
268
|
+
msg.messageStubParameters = oldNumber.map(j => WABinary_1.lidToJid(j)) || [];
|
|
269
269
|
msg.messageStubType = Types_1.WAMessageStubType.GROUP_PARTICIPANT_CHANGE_NUMBER;
|
|
270
270
|
break;
|
|
271
271
|
case 'promote':
|
|
@@ -283,7 +283,7 @@ const makeMessagesRecvSocket = (config) => {
|
|
|
283
283
|
child.tag === 'remove') {
|
|
284
284
|
msg.messageStubType = Types_1.WAMessageStubType.GROUP_PARTICIPANT_LEAVE;
|
|
285
285
|
}
|
|
286
|
-
msg.messageStubParameters = participants;
|
|
286
|
+
msg.messageStubParameters = participants.map(j => WABinary_1.lidToJid(j));
|
|
287
287
|
break;
|
|
288
288
|
case 'subject':
|
|
289
289
|
msg.messageStubType = Types_1.WAMessageStubType.GROUP_CHANGE_SUBJECT;
|