Do not include an empty item XML element in join presences
This commit is contained in:
1 parent
da85617428
commit
e3b91475ff
1 file changed
+1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user