diff options
Diffstat (limited to 'protocols/WhatsApp')
-rw-r--r-- | protocols/WhatsApp/src/appsync.cpp | 4 | ||||
-rw-r--r-- | protocols/WhatsApp/src/avatars.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/chats.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/crypt.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/db.h | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/dicts.h | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/iq.cpp | 10 | ||||
-rw-r--r-- | protocols/WhatsApp/src/main.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/message.cpp | 4 | ||||
-rw-r--r-- | protocols/WhatsApp/src/noise.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/options.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/proto.h | 5 | ||||
-rw-r--r-- | protocols/WhatsApp/src/qrcode.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/server.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/signal.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/stdafx.cxx | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/stdafx.h | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/utils.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/utils.h | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/version.h | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/wanode.cpp | 2 |
22 files changed, 34 insertions, 25 deletions
diff --git a/protocols/WhatsApp/src/appsync.cpp b/protocols/WhatsApp/src/appsync.cpp index 62ca86b979..d293e7e177 100644 --- a/protocols/WhatsApp/src/appsync.cpp +++ b/protocols/WhatsApp/src/appsync.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
@@ -275,7 +275,7 @@ void WhatsAppProto::ProcessHistorySync(const Wa__HistorySync *pSync) auto *key = pMessage->message->key;
DB::EventInfo dbei;
- dbei.timestamp = pMessage->message->messagetimestamp;
+ dbei.iTimestamp = pMessage->message->messagetimestamp;
dbei.pBlob = szMessageText.GetBuffer();
dbei.szId = key->id;
dbei.flags = DBEF_READ;
diff --git a/protocols/WhatsApp/src/avatars.cpp b/protocols/WhatsApp/src/avatars.cpp index f1b0709c34..2ba0d2be45 100644 --- a/protocols/WhatsApp/src/avatars.cpp +++ b/protocols/WhatsApp/src/avatars.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/chats.cpp b/protocols/WhatsApp/src/chats.cpp index 16d8be872d..d78e042f50 100644 --- a/protocols/WhatsApp/src/chats.cpp +++ b/protocols/WhatsApp/src/chats.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/crypt.cpp b/protocols/WhatsApp/src/crypt.cpp index 1e705d4d7a..c56d4138ce 100644 --- a/protocols/WhatsApp/src/crypt.cpp +++ b/protocols/WhatsApp/src/crypt.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/db.h b/protocols/WhatsApp/src/db.h index 1642b43f15..771463c163 100644 --- a/protocols/WhatsApp/src/db.h +++ b/protocols/WhatsApp/src/db.h @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/dicts.h b/protocols/WhatsApp/src/dicts.h index 4eb96bbef5..478bce28d0 100644 --- a/protocols/WhatsApp/src/dicts.h +++ b/protocols/WhatsApp/src/dicts.h @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp index bf6b85febc..aa37ad20d9 100644 --- a/protocols/WhatsApp/src/iq.cpp +++ b/protocols/WhatsApp/src/iq.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
@@ -490,6 +490,13 @@ void WhatsAppProto::OnReceiveInfo(const WANode &node) /////////////////////////////////////////////////////////////////////////////////////////
+void WhatsAppProto::OnReceiveCall(const WANode &node)
+{
+ SendAck(node);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
void WhatsAppProto::ProcessReceipt(MCONTACT hContact, const char *msgId, bool bRead)
{
MEVENT hEvent = db_event_getById(m_szModuleName, msgId);
@@ -557,6 +564,7 @@ void WhatsAppProto::InitPersistentHandlers() m_arPersistent.insert(new WAPersistentHandler("ack", 0, 0, 0, &WhatsAppProto::OnReceiveAck));
m_arPersistent.insert(new WAPersistentHandler("ib", 0, 0, 0, &WhatsAppProto::OnReceiveInfo));
+ m_arPersistent.insert(new WAPersistentHandler("call", 0, 0, 0, &WhatsAppProto::OnReceiveCall));
m_arPersistent.insert(new WAPersistentHandler("failure", 0, 0, 0, &WhatsAppProto::OnReceiveFailure));
m_arPersistent.insert(new WAPersistentHandler("message", 0, 0, 0, &WhatsAppProto::OnReceiveMessage));
m_arPersistent.insert(new WAPersistentHandler("receipt", 0, 0, 0, &WhatsAppProto::OnReceiveReceipt));
diff --git a/protocols/WhatsApp/src/main.cpp b/protocols/WhatsApp/src/main.cpp index 0bed10775b..775d2e8a95 100644 --- a/protocols/WhatsApp/src/main.cpp +++ b/protocols/WhatsApp/src/main.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/message.cpp b/protocols/WhatsApp/src/message.cpp index 2acf0b3a4e..008452a7d9 100644 --- a/protocols/WhatsApp/src/message.cpp +++ b/protocols/WhatsApp/src/message.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
@@ -212,7 +212,7 @@ void WhatsAppProto::ProcessMessage(WAMSG type, const Wa__WebMessageInfo &msg) // for chats & group chats store message in profile
if (type.bPrivateChat || type.bGroupChat) {
DB::EventInfo dbei;
- dbei.timestamp = timestamp;
+ dbei.iTimestamp = timestamp;
dbei.pBlob = szMessageText.GetBuffer();
dbei.szId = msgId;
if (type.bOffline)
diff --git a/protocols/WhatsApp/src/noise.cpp b/protocols/WhatsApp/src/noise.cpp index 1294fb590e..81fa92c2ae 100644 --- a/protocols/WhatsApp/src/noise.cpp +++ b/protocols/WhatsApp/src/noise.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
WANoise class implementation
diff --git a/protocols/WhatsApp/src/options.cpp b/protocols/WhatsApp/src/options.cpp index 3b9cb7b2a0..6900fa752c 100644 --- a/protocols/WhatsApp/src/options.cpp +++ b/protocols/WhatsApp/src/options.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index f71b36baf8..27de100a6e 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/proto.h b/protocols/WhatsApp/src/proto.h index 7f87fe2f9a..27bb548c9a 100644 --- a/protocols/WhatsApp/src/proto.h +++ b/protocols/WhatsApp/src/proto.h @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
@@ -10,7 +10,7 @@ Copyright © 2019-24 George Hazan #define WA_PROTO_MAJOR 2
#define WA_PROTO_MINOR 3000
-#define WA_PROTO_BUILD 1015901307
+#define WA_PROTO_BUILD 1023223821
#define WA_APPVERSION WA_PROTO_MAJOR,WA_PROTO_MINOR,WA_PROTO_BUILD
#define WA_STRINGIFY_IMPL(x) #x
@@ -422,6 +422,7 @@ class WhatsAppProto : public PROTO<WhatsAppProto> void OnNotifyEncrypt(const WANode &node);
void OnNotifyPicture(const WANode &node);
void OnReceiveAck(const WANode &node);
+ void OnReceiveCall(const WANode &node);
void OnReceiveChatState(const WANode &node);
void OnReceiveFailure(const WANode &node);
void OnReceiveInfo(const WANode &node);
diff --git a/protocols/WhatsApp/src/qrcode.cpp b/protocols/WhatsApp/src/qrcode.cpp index 416f01cddd..46ae15dab5 100644 --- a/protocols/WhatsApp/src/qrcode.cpp +++ b/protocols/WhatsApp/src/qrcode.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/server.cpp b/protocols/WhatsApp/src/server.cpp index bf7bf142c6..5908bb23a1 100644 --- a/protocols/WhatsApp/src/server.cpp +++ b/protocols/WhatsApp/src/server.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/signal.cpp b/protocols/WhatsApp/src/signal.cpp index 19f0137d1d..941fa6888e 100644 --- a/protocols/WhatsApp/src/signal.cpp +++ b/protocols/WhatsApp/src/signal.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/stdafx.cxx b/protocols/WhatsApp/src/stdafx.cxx index 28c7344274..65c5c9aa9f 100644 --- a/protocols/WhatsApp/src/stdafx.cxx +++ b/protocols/WhatsApp/src/stdafx.cxx @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/stdafx.h b/protocols/WhatsApp/src/stdafx.h index e63411ec58..0384358786 100644 --- a/protocols/WhatsApp/src/stdafx.h +++ b/protocols/WhatsApp/src/stdafx.h @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index 133584014c..7cccd9c543 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/utils.h b/protocols/WhatsApp/src/utils.h index f5f0d488e2..770de4954a 100644 --- a/protocols/WhatsApp/src/utils.h +++ b/protocols/WhatsApp/src/utils.h @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
diff --git a/protocols/WhatsApp/src/version.h b/protocols/WhatsApp/src/version.h index e3a3465677..22e7958c5b 100644 --- a/protocols/WhatsApp/src/version.h +++ b/protocols/WhatsApp/src/version.h @@ -10,4 +10,4 @@ #define __DESCRIPTION "WhatsApp protocol support for Miranda NG."
#define __AUTHOR "George Hazan"
#define __AUTHORWEB "https://miranda-ng.org/p/WhatsApp"
-#define __COPYRIGHT "© 2019-24 Miranda NG team"
+#define __COPYRIGHT "© 2019-25 Miranda NG team"
diff --git a/protocols/WhatsApp/src/wanode.cpp b/protocols/WhatsApp/src/wanode.cpp index 5f0b1aeff7..882233031c 100644 --- a/protocols/WhatsApp/src/wanode.cpp +++ b/protocols/WhatsApp/src/wanode.cpp @@ -1,7 +1,7 @@ /*
WhatsApp plugin for Miranda NG
-Copyright © 2019-24 George Hazan
+Copyright © 2019-25 George Hazan
*/
|