summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/iq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/iq.cpp')
-rw-r--r--protocols/WhatsApp/src/iq.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp
index c86e1e23a1..3c0cd8c64f 100644
--- a/protocols/WhatsApp/src/iq.cpp
+++ b/protocols/WhatsApp/src/iq.cpp
@@ -13,7 +13,7 @@ void WhatsAppProto::OnAccountSync(const WANode &node)
for (auto &it : node.getChild("devices")->getChildren())
if (it->title == "device")
- m_arDevices.insert(new WADevice(it->getAttr("jid"), it->getAttrInt("key-index")));
+ m_arDevices.insert(new WAJid(it->getAttr("jid"), it->getAttrInt("key-index")));
SendAck(node);
}
@@ -91,7 +91,7 @@ void WhatsAppProto::OnIqGetUsync(const WANode &node)
if (auto *pList = nUser->getChild("devices")->getChild("device-list"))
for (auto &it : pList->getChildren())
if (it->title == "device")
- m_arDevices.insert(new WADevice(pszJid, it->getAttrInt("id")));
+ m_arDevices.insert(new WAJid(pszJid, it->getAttrInt("id")));
}
}