From 3981d55898a354b6b224f1e8749d43d3ba663a15 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 7 Nov 2023 19:34:48 +0300 Subject: =?UTF-8?q?fixes=20#3804=20(WhatsApp:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=83=D1=87?= =?UTF-8?q?=D1=91=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=B8=20=D0=B2=D1=8B=D0=BB=D0=B5=D0=B7=D0=B0=D0=B5=D1=82=20?= =?UTF-8?q?=D0=BE=D0=BA=D0=BD=D0=BE=20"=D0=9E=20=D0=BF=D1=80=D0=BE=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D0=BC=D0=B5")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/WhatsApp/src/iq.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols') 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()); } -- cgit v1.2.3