From 170676e9895c58f9b29d6532ea4010e3776505ac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 26 Jun 2024 21:39:50 +0300 Subject: fixes #4436 (WhatsApp: unable to login) --- protocols/WhatsApp/src/iq.cpp | 10 +++------- protocols/WhatsApp/src/proto.h | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp index 5aca6a34b3..7430abd44b 100644 --- a/protocols/WhatsApp/src/iq.cpp +++ b/protocols/WhatsApp/src/iq.cpp @@ -371,18 +371,14 @@ LBL_Error: Wa__DeviceProps__AppVersion appVersion; T2Utf devName(m_wszDeviceName); - MFileVersion v; - Miranda_GetFileVersion(&v); - // not received our jid from server? generate registration packet then if (m_szJid.IsEmpty()) { uint8_t buildHash[16]; mir_md5_hash((BYTE *)WA_APPVERSION_STRING, sizeof(WA_APPVERSION_STRING) - 1, buildHash); - appVersion.primary = v[0]; appVersion.has_primary = true; - appVersion.secondary = v[1]; appVersion.has_secondary = true; - appVersion.tertiary = v[2]; appVersion.has_tertiary = true; - appVersion.quaternary = v[3]; appVersion.has_quaternary = true; + appVersion.primary = WA_PROTO_MAJOR; appVersion.has_primary = true; + appVersion.secondary = WA_PROTO_MINOR; appVersion.has_secondary = true; + appVersion.tertiary = WA_PROTO_BUILD; appVersion.has_tertiary = true; companion.os = devName.get(); companion.version = &appVersion; diff --git a/protocols/WhatsApp/src/proto.h b/protocols/WhatsApp/src/proto.h index 8170101d2f..c85bd73088 100644 --- a/protocols/WhatsApp/src/proto.h +++ b/protocols/WhatsApp/src/proto.h @@ -9,8 +9,8 @@ Copyright #define PROTO_H #define WA_PROTO_MAJOR 2 -#define WA_PROTO_MINOR 2323 -#define WA_PROTO_BUILD 4 +#define WA_PROTO_MINOR 2413 +#define WA_PROTO_BUILD 1 #define WA_APPVERSION WA_PROTO_MAJOR,WA_PROTO_MINOR,WA_PROTO_BUILD #define WA_STRINGIFY_IMPL(x) #x -- cgit v1.2.3