forked from mirror/monocles_chat_clean
use item id 'current' for nick as fallback as per XEP-0060 §12.20 (Daniel Gultsch)
This commit is contained in:
parent
1088c9dfe4
commit
504a074a14
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue