summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-03 22:39:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-03 22:39:06 +0300
commite244c307f2e1fec282a097a991fbfc1c8272d603 (patch)
tree0fe02adf57ae17d7db8865b21b2106f78678bfdc
parent238864687b25697a4ed1bae937daf375d48ef777 (diff)
more account sync info
-rw-r--r--protocols/WhatsAppWeb/src/iq.cpp2
-rw-r--r--protocols/WhatsAppWeb/src/server.cpp10
2 files changed, 10 insertions, 2 deletions
diff --git a/protocols/WhatsAppWeb/src/iq.cpp b/protocols/WhatsAppWeb/src/iq.cpp
index e9d93ae53a..cf55f9cfd4 100644
--- a/protocols/WhatsAppWeb/src/iq.cpp
+++ b/protocols/WhatsAppWeb/src/iq.cpp
@@ -111,7 +111,7 @@ void WhatsAppProto::OnSuccess(const WANode &)
{
OnLoggedIn();
- WSSendNode(WANodeIq(IQ::SET, "passive") << XCHILD("active"));
+ WSSendNode(WANodeIq(IQ::SET, "passive") << XCHILD("active"), &WhatsAppProto::OnIqDoNothing);
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/WhatsAppWeb/src/server.cpp b/protocols/WhatsAppWeb/src/server.cpp
index e6f1dd20f8..663a10901f 100644
--- a/protocols/WhatsAppWeb/src/server.cpp
+++ b/protocols/WhatsAppWeb/src/server.cpp
@@ -244,10 +244,18 @@ void WhatsAppProto::OnLoggedIn()
&WhatsAppProto::OnIqCountPrekeys);
// retrieve initial info
+ WANodeIq abt(IQ::GET, "abt");
+ abt.addChild("props")->addAttr("protocol", "1");
+ WSSendNode(abt, &WhatsAppProto::OnIqDoNothing);
+
+ WSSendNode(
+ WANodeIq(IQ::GET, "w") << XCHILD("props"),
+ &WhatsAppProto::OnIqDoNothing);
+
WSSendNode(
WANodeIq(IQ::GET, "blocklist"),
&WhatsAppProto::OnIqBlockList);
-
+
WSSendNode(
WANodeIq(IQ::GET, "privacy") << XCHILD("privacy"),
&WhatsAppProto::OnIqDoNothing);