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