Commit ae41c5de authored by louiz’'s avatar louiz’

Include the xhtml-im element in private messages too

parent 4e61b0d5
...@@ -479,6 +479,15 @@ void XmppComponent::send_message(const std::string& from, Xmpp::body&& body, con ...@@ -479,6 +479,15 @@ void XmppComponent::send_message(const std::string& from, Xmpp::body&& body, con
body_node.set_inner(std::get<0>(body)); body_node.set_inner(std::get<0>(body));
body_node.close(); body_node.close();
node.add_child(std::move(body_node)); node.add_child(std::move(body_node));
if (std::get<1>(body))
{
XmlNode html("html");
html["xmlns"] = XHTMLIM_NS;
// Pass the ownership of the pointer to this xmlnode
html.add_child(std::get<1>(body).release());
html.close();
node.add_child(std::move(html));
}
node.close(); node.close();
this->send_stanza(node); this->send_stanza(node);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment