~singpolyma/biboumi

ae41c5dee424e910e6e4d6a145493845a2c831c3 — Florent Le Coz 10 years ago 4e61b0d
Include the xhtml-im element in private messages too
1 files changed, 9 insertions(+), 0 deletions(-)

M src/xmpp/xmpp_component.cpp
M src/xmpp/xmpp_component.cpp => src/xmpp/xmpp_component.cpp +9 -0
@@ 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.close();
  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();
  this->send_stanza(node);
}