summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-07 19:34:48 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-07 19:34:48 +0300
commit3981d55898a354b6b224f1e8749d43d3ba663a15 (patch)
tree237736e22f334eb243b3a90387ab913ec457fdee /protocols
parent03d8ca472d6d868907c58162086a3d7d513a4f0d (diff)
fixes #3804 (WhatsApp: при удалении учётной записи вылезает окно "О программе")
Diffstat (limited to 'protocols')
-rw-r--r--protocols/WhatsApp/src/iq.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp
index 50490829f7..3512266fe8 100644
--- a/protocols/WhatsApp/src/iq.cpp
+++ b/protocols/WhatsApp/src/iq.cpp
@@ -141,6 +141,11 @@ void WhatsAppProto::OnIqPairDevice(const WANode &node)
{
WSSendNode(WANodeIq(IQ::RESULT) << CHAR_PARAM("id", node.getAttr("id")));
+ if (m_bUnregister) {
+ m_bTerminated = true;
+ return;
+ }
+
if (auto *pRef = node.getChild("pair-device")->getChild("ref")) {
ShowQrCode(pRef->getBody());
}