From 2ef41e1afca824acc0cd0ac9a714016459a24d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 19 Apr 2020 11:49:07 +0200 Subject: Add missing affiliation and role in nick change presence Fix #3429 --- src/xmpp/xmpp_component.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index 767fb2e..de9a7a6 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -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) -- cgit v1.2.3