@fyxzpediaa/baileys 8.1.0 → 8.1.1
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/Utils/generics.js +9 -1
- package/package.json +1 -1
package/lib/Utils/generics.js
CHANGED
|
@@ -359,7 +359,15 @@ export function trimUndefined(obj) {
|
|
|
359
359
|
}
|
|
360
360
|
return obj;
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
// FIX (root cause pairing gagal): alfabet sebelumnya '123456789ABCDEFGHJKLMNPQRSTVWXYZ'
|
|
363
|
+
// SALAH — hilang '0' di depan, dan ada 'L' yang seharusnya TIDAK boleh ada.
|
|
364
|
+
// Diverifikasi ke spek asli Crockford (crockford.com/base32.html): alfabet
|
|
365
|
+
// resmi cuma 10 digit + 22 huruf, MENGECUALIKAN I, L, O, U — persis supaya
|
|
366
|
+
// tidak ambigu. Kode custom yang di-generate index.js bot (VQ7B-GNLN, dst)
|
|
367
|
+
// bisa mengandung 'L' gara-gara bug ini, dan WhatsApp menolaknya sebagai kode
|
|
368
|
+
// tidak valid pas dimasukkan di HP — cocok persis dengan gejala "kode
|
|
369
|
+
// terbuat, tapi HP tolak nautkan".
|
|
370
|
+
const CROCKFORD_CHARACTERS = '0123456789ABCDEFGHJKMNPQRSTVWXYZ';
|
|
363
371
|
export function bytesToCrockford(buffer) {
|
|
364
372
|
let value = 0;
|
|
365
373
|
let bitCount = 0;
|