Do not include an empty item XML element in join presences

This commit is contained in:
Florent Le Coz
2014-02-08 08:04:33 +01:00
parent da85617428
commit e3b91475ff
+1
View File
@@ -324,6 +324,7 @@ void XmppComponent::send_user_join(const std::string& from,
item["jid"] = preped_jid; item["jid"] = preped_jid;
} }
item.close(); item.close();
if (item.has_children())
x.add_child(std::move(item)); x.add_child(std::move(item));
if (self) if (self)