Add missing affiliation and role in nick change presence

Fix #3429
This commit is contained in:
louiz’
2020-04-19 11:49:07 +02:00
parent 4ee3dd695e
commit 2ef41e1afc
+2
View File
@@ -481,6 +481,8 @@ void XmppComponent::send_nick_change(const std::string& muc_name,
x["xmlns"] = MUC_USER_NS;
XmlSubNode item(x, "item");
item["nick"] = new_nick;
item["affiliation"] = affiliation;
item["role"] = role;
XmlSubNode status(x, "status");
status["code"] = "303";
if (self)