use item id 'current' for nick as fallback as per XEP-0060 §12.20

This commit is contained in:
Daniel Gultsch 2022-06-22 07:18:07 +02:00
parent 467e34e2fe
commit 17b9ca9dec

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);
}