diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-10-26 18:28:26 +0200 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-10-26 18:28:26 +0200 |
commit | 57e0f4a21d127667df11192711c7077439cfbb36 (patch) | |
tree | ead4bbcb1c7f031da55c060bacb47ee01b7fd4f3 /src/main/java/de/pixart/messenger/generator/IqGenerator.java | |
parent | 004867686b670c368038a45324b44dee2c465d66 (diff) |
bookmarks2. introduce #compat namespace
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/generator/IqGenerator.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/IqGenerator.java b/src/main/java/de/pixart/messenger/generator/IqGenerator.java index 4e9edeac9..f7e94b0c6 100644 --- a/src/main/java/de/pixart/messenger/generator/IqGenerator.java +++ b/src/main/java/de/pixart/messenger/generator/IqGenerator.java @@ -126,7 +126,7 @@ public class IqGenerator extends AbstractGenerator { } public IqPacket retrieveBookmarks() { - return retrieve(Namespace.BOOKMARK, null); + return retrieve(Namespace.BOOKMARKS2, null); } public IqPacket publishNick(String nick) { @@ -243,13 +243,15 @@ public class IqGenerator extends AbstractGenerator { public Element publishBookmarkItem(final Bookmark bookmark) { final String name = bookmark.getBookmarkName(); final String nick = bookmark.getNick(); - final Element conference = new Element("conference", Namespace.BOOKMARK); + final boolean autojoin = bookmark.autojoin(); + final Element conference = new Element("conference", Namespace.BOOKMARKS2); if (name != null) { conference.setAttribute("name", name); } if (nick != null) { conference.addChild("nick").setContent(nick); } + conference.setAttribute("autojoin", String.valueOf(autojoin)); return conference; } |