summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/WhatsApp/src/iq.cpp10
-rw-r--r--protocols/WhatsApp/src/proto.h4
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 © 2019-24 George Hazan
#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