diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-03 18:35:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-03 18:35:02 +0300 |
commit | f914ae11d7192baf20a170e6ad6f2ae9a8cc0585 (patch) | |
tree | bfadd7c3f449156cc54a4dcb3d17282941e33129 | |
parent | 0a59ec1d5a3e02cd8bc04933ae06c038d05c6a34 (diff) |
fix for prekeys uploading
-rw-r--r-- | protocols/WhatsAppWeb/src/iq.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsAppWeb/src/iq.cpp b/protocols/WhatsAppWeb/src/iq.cpp index 287257594a..8fe5b5ddf8 100644 --- a/protocols/WhatsAppWeb/src/iq.cpp +++ b/protocols/WhatsAppWeb/src/iq.cpp @@ -44,7 +44,7 @@ void WhatsAppProto::OnIqCountPrekeys(const WANode &node) nKey->addChild("value")->content.append(getBlob(CMStringA(FORMAT, "PreKey%dPublic", keyId))); } - auto *skey = n->addChild("skey"); + auto *skey = iq.addChild("skey"); auto encId = encodeBigEndian(m_noise->preKey.keyid, 3); skey->addChild("id")->content.append(encId.c_str(), encId.size()); |