summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-17 01:21:38 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-17 01:21:38 +0100
commit6dbf36b974cd641f4541599496b04ad48ab41c87 (patch)
treee82a95675701e55c5a13a4e3d553603db8923f6f
parent274859c096b25444d475d1319e9296a868ec258c (diff)
downloadbiboumi-6dbf36b974cd641f4541599496b04ad48ab41c87.tar.gz
biboumi-6dbf36b974cd641f4541599496b04ad48ab41c87.tar.bz2
biboumi-6dbf36b974cd641f4541599496b04ad48ab41c87.tar.xz
biboumi-6dbf36b974cd641f4541599496b04ad48ab41c87.zip
Revert "Do not include an empty item XML element in join presences"
This reverts commit e3b91475ffd7c1c76868964614f66060ba9e3a85.
-rw-r--r--src/xmpp/xmpp_component.cpp3
1 files changed, 1 insertions, 2 deletions
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)
{