diff options
author | louiz’ <louiz@louiz.org> | 2017-12-26 20:21:18 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-12-26 20:21:18 +0100 |
commit | 131ef9946fff0f5cfd794203e819df931b72600f (patch) | |
tree | c81ac414bc7bf87fbc5785074a7c35e6300bd3e4 /src/xmpp/xmpp_component.cpp | |
parent | 37340e593ffb61eaccc444a1efdb3aa6f784a14a (diff) | |
download | biboumi-131ef9946fff0f5cfd794203e819df931b72600f.tar.gz biboumi-131ef9946fff0f5cfd794203e819df931b72600f.tar.bz2 biboumi-131ef9946fff0f5cfd794203e819df931b72600f.tar.xz biboumi-131ef9946fff0f5cfd794203e819df931b72600f.zip |
Include the <fin><set><first/><last/></></> nodes in the MAM iq result
fix #3322
Diffstat (limited to 'src/xmpp/xmpp_component.cpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index c44b990..8f6826e 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -640,13 +640,15 @@ void XmppComponent::send_iq_version_request(const std::string& from, this->send_stanza(iq); } -void XmppComponent::send_iq_result_full_jid(const std::string& id, const std::string& to_jid, const std::string& from_full_jid) +void XmppComponent::send_iq_result_full_jid(const std::string& id, const std::string& to_jid, const std::string& from_full_jid, std::unique_ptr<XmlNode> inner) { Stanza iq("iq"); iq["from"] = from_full_jid; iq["to"] = to_jid; iq["id"] = id; iq["type"] = "result"; + if (inner) + iq.add_child(std::move(inner)); this->send_stanza(iq); } |