From 495bb6775af76a5f214b2fa9063079d5d139cd0a Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Sun, 28 Apr 2024 08:02:41 -0300 Subject: [PATCH] fix: old_version in mobile connection (#722) * mobile version * mobile version * mobile version --- src/Defaults/index.ts | 2 +- src/Utils/validate-connection.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Defaults/index.ts b/src/Defaults/index.ts index b67060b179c..c21e2bb5766 100644 --- a/src/Defaults/index.ts +++ b/src/Defaults/index.ts @@ -20,7 +20,7 @@ export const PHONE_CONNECTION_CB = 'CB:Pong' export const WA_DEFAULT_EPHEMERAL = 7 * 24 * 60 * 60 -const WA_VERSION = '2.23.14.82' +const WA_VERSION = '2.24.6.77' const WA_VERSION_HASH = createHash('md5').update(WA_VERSION).digest('hex') export const MOBILE_TOKEN = Buffer.from('0a1mLfGUIBVrMKF1RdvLI5lkRBvof6vn0fD2QRSM' + WA_VERSION_HASH) diff --git a/src/Utils/validate-connection.ts b/src/Utils/validate-connection.ts index f6ad71b502d..6057d5dc236 100644 --- a/src/Utils/validate-connection.ts +++ b/src/Utils/validate-connection.ts @@ -10,7 +10,7 @@ import { createSignalIdentity } from './signal' const getUserAgent = (config: SocketConfig): proto.ClientPayload.IUserAgent => { const osVersion = config.mobile ? '15.3.1' : '0.1' - const version = config.mobile ? [2, 22, 24] : config.version + const version = config.mobile ? [2, 24, 6] : config.version const device = config.mobile ? 'iPhone_7' : 'Desktop' const manufacturer = config.mobile ? 'Apple' : '' const platform = config.mobile ? proto.ClientPayload.UserAgent.Platform.IOS : proto.ClientPayload.UserAgent.Platform.WEB