use item id 'current' for nick as fallback as per XEP-0060 §12.20 (Daniel Gultsch)

This commit is contained in:
Arne 2022-06-22 19:04:13 +02:00
parent 1088c9dfe4
commit 504a074a14

View file

@ -131,6 +131,7 @@ public class IqGenerator extends AbstractGenerator {
public IqPacket publishNick(String nick) {
final Element item = new Element("item");
item.setAttribute("id", "current");
item.addChild("nick", Namespace.NICK).setContent(nick);
return publish(Namespace.NICK, item);
}