Always add a 210 status in our self join presence

Because it's much much simpler than to track if we changed the nick that
was requested in the join request. And client will probably not get confused,
I hope.
This commit is contained in:
louiz’
2019-09-22 15:54:13 +02:00
parent cbfb562903
commit 89bb886a1b
+4 -2
View File
@@ -340,8 +340,10 @@ void XmppComponent::send_user_join(const std::string& from,
if (self)
{
XmlSubNode status(x, "status");
status["code"] = "110";
XmlSubNode status_self(x, "status");
status_self["code"] = "110";
XmlSubNode status_nick_modified(x, "status");
status_nick_modified["code"] = "210";
}
}
this->send_stanza(presence);