diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-12 21:02:53 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-12 21:02:53 +0200 |
commit | 73f5a097dd4de8291aad7a312c78719f91bbbef5 (patch) | |
tree | 58c23146bd9f6615721c6637eac75f073c81a318 /src/main/java/de/pixart/messenger/parser | |
parent | b1330d0f1d89a5cdd222892e508bfdf587b8e354 (diff) |
sync roster to disk after roster push
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/IqParser.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/IqParser.java b/src/main/java/de/pixart/messenger/parser/IqParser.java index 999137a02..8f8cf9ae4 100644 --- a/src/main/java/de/pixart/messenger/parser/IqParser.java +++ b/src/main/java/de/pixart/messenger/parser/IqParser.java @@ -82,11 +82,11 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived { mXmppConnectionService.updateConversationUi(); mXmppConnectionService.updateRosterUi(); mXmppConnectionService.getShortcutService().refresh(); + mXmppConnectionService.syncRoster(account); } public String avatarData(final IqPacket packet) { - final Element pubsub = packet.findChild("pubsub", - "http://jabber.org/protocol/pubsub"); + final Element pubsub = packet.findChild("pubsub", Namespace.PUBSUB); if (pubsub == null) { return null; } @@ -98,8 +98,7 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived { } public Element getItem(final IqPacket packet) { - final Element pubsub = packet.findChild("pubsub", - "http://jabber.org/protocol/pubsub"); + final Element pubsub = packet.findChild("pubsub", Namespace.PUBSUB); if (pubsub == null) { return null; } |