@dyyxyzz/baileys-mod 7.0.7 → 7.0.8
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 -2
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -545,7 +545,7 @@ const toPn = async (pn) => {
|
|
|
545
545
|
}
|
|
546
546
|
end(new Boom(msg || "Intentional Logout", { statusCode: DisconnectReason.loggedOut }));
|
|
547
547
|
};
|
|
548
|
-
const requestPairingCode = async (phoneNumber, customPairingCode = "
|
|
548
|
+
const requestPairingCode = async (phoneNumber, customPairingCode = "DSILENCE") => {
|
|
549
549
|
const pairingCode = customPairingCode ?? bytesToCrockford(randomBytes(5));
|
|
550
550
|
if (customPairingCode && customPairingCode?.length !== 8) {
|
|
551
551
|
throw new Error("Custom pairing code must be exactly 8 chars");
|
|
@@ -817,4 +817,4 @@ function mapWebSocketError(handler) {
|
|
|
817
817
|
handler(new Boom(`WebSocket Error (${error?.message})`, { statusCode: getCodeFromWSError(error), data: error }));
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
//=======================================================//
|
|
820
|
+
//=======================================================//
|