~singpolyma/cheogram-android

17b9ca9dec1796f9b9f598b3a93cec690a6f5ab5 — Daniel Gultsch 2 years ago 467e34e
use item id 'current' for nick as fallback as per XEP-0060 §12.20
1 files changed, 1 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/generator/IqGenerator.java
M src/main/java/eu/siacs/conversations/generator/IqGenerator.java => src/main/java/eu/siacs/conversations/generator/IqGenerator.java +1 -0
@@ 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);
    }