use item id 'current' for nick as fallback as per XEP-0060 §12.20
This commit is contained in:
parent
467e34e2fe
commit
17b9ca9dec
|
@ -131,6 +131,7 @@ public class IqGenerator extends AbstractGenerator {
|
||||||
|
|
||||||
public IqPacket publishNick(String nick) {
|
public IqPacket publishNick(String nick) {
|
||||||
final Element item = new Element("item");
|
final Element item = new Element("item");
|
||||||
|
item.setAttribute("id", "current");
|
||||||
item.addChild("nick", Namespace.NICK).setContent(nick);
|
item.addChild("nick", Namespace.NICK).setContent(nick);
|
||||||
return publish(Namespace.NICK, item);
|
return publish(Namespace.NICK, item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue