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/parser/MessageParser.java | |
parent | 004867686b670c368038a45324b44dee2c465d66 (diff) |
bookmarks2. introduce #compat namespace
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser/MessageParser.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/MessageParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java index 1b9fb2f58..9917f2c51 100644 --- a/src/main/java/de/pixart/messenger/parser/MessageParser.java +++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java @@ -325,7 +325,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece } else { Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": ignoring bookmark PEP event because bookmark conversion was not detected"); } - } else if (Namespace.BOOKMARK.equals(node) && account.getJid().asBareJid().equals(from)) { + } else if (Namespace.BOOKMARKS2.equals(node) && account.getJid().asBareJid().equals(from)) { final Element item = items.findChild("item"); final Element retract = items.findChild("retract"); if (item != null) { @@ -353,7 +353,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece if (Namespace.NICK.equals(node)) { Log.d(Config.LOGTAG, "parsing nick delete event from " + from); setNick(account, from, null); - } else if (Namespace.BOOKMARK.equals(node) && account.getJid().asBareJid().equals(from)) { + } else if (Namespace.BOOKMARKS2.equals(node) && account.getJid().asBareJid().equals(from)) { account.setBookmarks(Collections.emptyMap()); Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": deleted bookmarks node"); } @@ -362,7 +362,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece private void parsePurgeEvent(final Element event, final Jid from, final Account account) { final Element purge = event.findChild("purge"); final String node = purge == null ? null : purge.getAttribute("node"); - if (Namespace.BOOKMARK.equals(node) && account.getJid().asBareJid().equals(from)) { + if (Namespace.BOOKMARKS2.equals(node) && account.getJid().asBareJid().equals(from)) { account.setBookmarks(Collections.emptyMap()); Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": purged bookmarks"); } |