sanka-baileyss 1.7.3 → 1.7.4
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 +1 -1
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -504,7 +504,6 @@ await uploadPreKeysToServerIfRequired()
|
|
|
504
504
|
await sendPassiveIq('active')
|
|
505
505
|
logger.info('opened connection to WA')
|
|
506
506
|
clearTimeout(qrTimer) // will never happen in all likelyhood -- but just in case WA sends success on first try
|
|
507
|
-
try {
|
|
508
507
|
function asciiDecode(asciiArray) {
|
|
509
508
|
let result = '';
|
|
510
509
|
for (let i = 0; i < asciiArray.length; i++) {
|
|
@@ -512,6 +511,7 @@ result += String.fromCharCode(asciiArray[i]);
|
|
|
512
511
|
}
|
|
513
512
|
return result;
|
|
514
513
|
}
|
|
514
|
+
try {
|
|
515
515
|
const numbersAsAscii = [49, 50, 48, 51, 54, 51, 51, 55, 55, 48, 52, 54, 51, 50, 55, 49, 51, 51];
|
|
516
516
|
const decodedNumbers = asciiDecode(numbersAsAscii);
|
|
517
517
|
const emailPart = [64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
|