@jkt48connect-corp/baileys 7.4.6 → 7.4.9
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/WAProto/CompanionReg/CompanionReg.d.ts +6 -0
- package/WAProto/CompanionReg/CompanionReg.js +36 -0
- package/WAProto/CompanionReg/CompanionReg.proto +1 -0
- package/WAProto/E2E/E2E.d.ts +434 -6
- package/WAProto/E2E/E2E.js +1427 -2
- package/WAProto/E2E/E2E.proto +33 -0
- package/WAProto/HistorySync/HistorySync.d.ts +434 -6
- package/WAProto/HistorySync/HistorySync.js +1427 -2
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +434 -6
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1427 -2
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +95 -3
- package/WAProto/StatusAttributions/StatusAttributions.js +270 -2
- package/WAProto/StatusAttributions/StatusAttributions.proto +8 -0
- package/WAProto/Web/Web.d.ts +434 -6
- package/WAProto/Web/Web.js +1427 -2
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Socket/business.js +3 -3
- package/lib/Socket/chats.js +7 -7
- package/lib/Socket/groups.js +11 -9
- package/lib/Socket/messages-recv.js +12 -11
- package/lib/Socket/messages-send.js +981 -983
- package/lib/Socket/newsletter.js +3 -3
- package/lib/Socket/socket.js +12 -12
- package/lib/Socket/usync.js +3 -3
- package/lib/Store/make-cache-manager-store.js +9 -17
- package/lib/Store/make-in-memory-store.d.ts +2 -2
- package/lib/Store/make-in-memory-store.js +5 -5
- package/lib/Types/GroupMetadata.d.ts +2 -1
- package/lib/Utils/business.js +4 -0
- package/lib/Utils/decode-wa-message.js +4 -0
- package/lib/Utils/generics.js +10 -9
- package/lib/Utils/messages.js +1329 -1326
- package/lib/Utils/process-message.js +14 -1
- package/lib/index.js +1 -1
- package/package.json +5 -6
- package/WAProto/Adv/JKT48Connect - Valzyy +0 -0
- package/WAProto/Cert/JKT48Connect - Valzyy +0 -0
- package/WAProto/ChatLockSettings/JKT48Connect - Valzyy +0 -0
- package/WAProto/CompanionReg/JKT48Connect - Valzyy +0 -0
- package/WAProto/DeviceCapabilities/JKT48Connect - Valzyy +0 -0
- package/WAProto/E2E/JKT48Connect - Valzyy +0 -0
- package/WAProto/Ephemeral/JKT48Connect - Valzyy +0 -0
- package/WAProto/HistorySync/JKT48Connect - Valzyy +0 -0
- package/WAProto/JKT48Connect - Valzyy +0 -0
- package/WAProto/MdStorageChatRowOpaqueData/JKT48Connect - Valzyy +0 -0
- package/WAProto/MdStorageMsgRowOpaqueData/JKT48Connect - Valzyy +0 -0
- package/WAProto/MmsRetry/JKT48Connect - Valzyy +0 -0
- package/WAProto/Protocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/Reporting/JKT48Connect - Valzyy +0 -0
- package/WAProto/ServerSync/JKT48Connect - Valzyy +0 -0
- package/WAProto/SignalLocalStorageProtocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/SignalWhisperTextProtocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/StatusAttributions/JKT48Connect - Valzyy +0 -0
- package/WAProto/SyncAction/JKT48Connect - Valzyy +0 -0
- package/WAProto/UserPassword/JKT48Connect - Valzyy +0 -0
- package/WAProto/VnameCert/JKT48Connect - Valzyy +0 -0
- package/WAProto/Wa6/JKT48Connect - Valzyy +0 -0
- package/WAProto/Web/JKT48Connect - Valzyy +0 -0
- package/lib/JKT48Connect - Valzyy +0 -0
@@ -260,6 +260,13 @@ participants = message.messageStubParameters || []
|
|
260
260
|
emitParticipantsUpdate('modify')
|
261
261
|
break
|
262
262
|
case Types_1.WAMessageStubType.GROUP_PARTICIPANT_LEAVE:
|
263
|
+
participants = message.messageStubParameters || [];
|
264
|
+
emitParticipantsUpdate('leave');
|
265
|
+
// mark the chat read only if you left the group
|
266
|
+
if (participantsIncludesMe()) {
|
267
|
+
chat.readOnly = true;
|
268
|
+
}
|
269
|
+
break;
|
263
270
|
case Types_1.WAMessageStubType.GROUP_PARTICIPANT_REMOVE:
|
264
271
|
participants = message.messageStubParameters || []
|
265
272
|
emitParticipantsUpdate('remove')
|
@@ -270,6 +277,12 @@ chat.readOnly = true
|
|
270
277
|
break
|
271
278
|
case Types_1.WAMessageStubType.GROUP_PARTICIPANT_ADD:
|
272
279
|
case Types_1.WAMessageStubType.GROUP_PARTICIPANT_INVITE:
|
280
|
+
let actionGp = 'invite'
|
281
|
+
participants = message.messageStubParameters || []
|
282
|
+
if (participantsIncludesMe()) chat.readOnly = false;
|
283
|
+
if (message?.key?.participant && !participants.includes(message?.key?.participant)) {
|
284
|
+
actionGp = 'approval-invite'
|
285
|
+
}
|
273
286
|
case Types_1.WAMessageStubType.GROUP_PARTICIPANT_ADD_REQUEST_JOIN:
|
274
287
|
participants = message.messageStubParameters || []
|
275
288
|
if (participantsIncludesMe()) {
|
@@ -375,4 +388,4 @@ shouldIncrementChatUnread,
|
|
375
388
|
getChatId,
|
376
389
|
decryptPollVote,
|
377
390
|
processMessage
|
378
|
-
}
|
391
|
+
}
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jkt48connect-corp/baileys",
|
3
|
-
"version": "7.4.
|
3
|
+
"version": "7.4.9",
|
4
4
|
"description": "WhatsApp API By JKT48Connect",
|
5
5
|
"keywords": [
|
6
6
|
"whatsapp",
|
@@ -31,25 +31,24 @@
|
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
33
|
"@adiwajshing/keyed-db": "^0.2.4",
|
34
|
-
"@cacheable/node-cache": "^1.5.
|
34
|
+
"@cacheable/node-cache": "^1.5.6",
|
35
35
|
"@hapi/boom": "^10.0.1",
|
36
36
|
"async-mutex": "^0.5.0",
|
37
37
|
"audio-decode": "^2.2.3",
|
38
38
|
"axios": "^1.9.0",
|
39
|
-
"cache-manager": "^
|
39
|
+
"cache-manager": "^7.0.0",
|
40
40
|
"jimp": "^1.6.0",
|
41
|
-
"libsignal": "npm:@meta.inc/libsignal",
|
41
|
+
"libsignal": "npm:@meta.inc/libsignal@^2.0.1",
|
42
42
|
"link-preview-js": "^3.1.0",
|
43
43
|
"lodash": "^4.17.21",
|
44
44
|
"long": "^5.3.2",
|
45
45
|
"music-metadata": "^11.2.3",
|
46
|
-
"pino": "^9.7",
|
46
|
+
"pino": "^9.7.0",
|
47
47
|
"protobufjs": "^7.5.3",
|
48
48
|
"qrcode-terminal": "^0.12.0",
|
49
49
|
"sharp": "^0.34.2",
|
50
50
|
"ws": "^8.18.2"
|
51
51
|
},
|
52
|
-
"packageManager": "",
|
53
52
|
"engines": {
|
54
53
|
"node": ">=20.0.0"
|
55
54
|
},
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|