diff options
author | sss <sss@dark-alexandr.net> | 2022-03-13 19:13:44 +0300 |
---|---|---|
committer | sss <sss@dark-alexandr.net> | 2022-03-13 19:13:44 +0300 |
commit | 152bd3a7503805978ba7c9fd4f62caf74547c20b (patch) | |
tree | 38d2fa6ce7f9681803c2f89bc86e130102208e4e /protocols/JabberG/src/jabber_iqid.cpp | |
parent | 0187ea2b4e05a9db837260bb1a581b9e86e280c2 (diff) |
omemo: added iqresult handler for manual polling of devicelist
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_iqid.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index d46980ca7e..a0c0d8bdfd 100755 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -1069,6 +1069,15 @@ void CJabberProto::OnIqResultSetVcard(const TiXmlElement *iqNode, CJabberIqInfo* SendPresence(m_iStatus, false);
}
}
+void CJabberProto::OnIqResultGetOmemodevicelist(const TiXmlElement* iqNode, CJabberIqInfo* pInfo)
+{
+ auto* itemsNode = XmlGetChildByTag(iqNode, "items", "node", JABBER_FEAT_OMEMO ".devicelist");
+ auto from = XmlGetAttr(iqNode, "from");
+ if (itemsNode) {
+ OmemoHandleDeviceList(from, itemsNode);
+ return;
+ }
+}
void CJabberProto::OnIqResultSetSearch(const TiXmlElement *iqNode, CJabberIqInfo*)
{
|