From d2434d8b6ed7d1316a8b9407a51091dbe240e937 Mon Sep 17 00:00:00 2001 From: vinicius Date: Tue, 23 Jul 2024 13:43:44 -0300 Subject: [PATCH] lint --- src/Socket/socket.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Socket/socket.ts b/src/Socket/socket.ts index ac8f52ddfba..ee845898db4 100644 --- a/src/Socket/socket.ts +++ b/src/Socket/socket.ts @@ -6,13 +6,13 @@ import { proto } from '../../WAProto' import { DEF_CALLBACK_PREFIX, DEF_TAG_PREFIX, + DEFAULT_DELAY_PAIRINGCODE, INITIAL_PREKEY_COUNT, MIN_PREKEY_COUNT, MOBILE_ENDPOINT, MOBILE_NOISE_HEADER, MOBILE_PORT, - NOISE_WA_HEADER, - DEFAULT_DELAY_PAIRINGCODE + NOISE_WA_HEADER } from '../Defaults' import { DisconnectReason, SocketConfig } from '../Types' import { @@ -497,6 +497,7 @@ export const makeSocket = (config: SocketConfig) => { if(delayMs) { await delay(delayMs) } + authState.creds.pairingCode = bytesToCrockford(randomBytes(5)) authState.creds.me = { id: jidEncode(phoneNumber, 's.whatsapp.net'),