diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-08-26 14:50:09 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-08-26 14:50:09 +0200 |
commit | 1b84205781e9dde416cdc9972b0fd47164ec4458 (patch) | |
tree | a3bfb3de0653d761ca407dc80e922481b3e023c6 /src/main/java/de/pixart/messenger/parser/MessageParser.java | |
parent | 5c9e661b6a61df54ad144c62b6e12e71bfa1893c (diff) |
store bookmarks in pep if conversion xep is running
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser/MessageParser.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/MessageParser.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java index 7cfd69e8b..df85f2f25 100644 --- a/src/main/java/de/pixart/messenger/parser/MessageParser.java +++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java @@ -304,6 +304,13 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece AxolotlService axolotlService = account.getAxolotlService(); axolotlService.registerDevices(from, deviceIds); mXmppConnectionService.updateAccountUi(); + } else if (Namespace.BOOKMARKS.equals(node)) { + Log.d(Config.LOGTAG, "received bookmarks from " + from); + if (account.getJid().asBareJid().equals(from)) { + final Element i = items.findChild("item"); + final Element storage = i == null ? null : i.findChild("storage", Namespace.BOOKMARKS); + mXmppConnectionService.processBookmarks(account, storage); + } } } |