From 6dbf36b974cd641f4541599496b04ad48ab41c87 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 17 Feb 2014 01:21:38 +0100 Subject: Revert "Do not include an empty item XML element in join presences" This reverts commit e3b91475ffd7c1c76868964614f66060ba9e3a85. --- src/xmpp/xmpp_component.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index ef86213..92c614c 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -324,8 +324,7 @@ void XmppComponent::send_user_join(const std::string& from, item["jid"] = preped_jid; } item.close(); - if (item.has_children()) - x.add_child(std::move(item)); + x.add_child(std::move(item)); if (self) { -- cgit v1.2.3