Commit e3b91475 authored by louiz’'s avatar louiz’

Do not include an empty item XML element in join presences

parent da856174
......@@ -324,7 +324,8 @@ void XmppComponent::send_user_join(const std::string& from,
item["jid"] = preped_jid;
}
item.close();
x.add_child(std::move(item));
if (item.has_children())
x.add_child(std::move(item));
if (self)
{
......
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