diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-12-27 22:14:05 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-12-27 22:14:05 +0100 |
commit | 85a49bc472ee2ad057955e5681c29d81435822f9 (patch) | |
tree | 06f78debdb0f197e8d8c9d0fcd1987ebd7627162 /src/main/java/de/pixart/messenger/parser/IqParser.java | |
parent | 32d10e4c19cba790cc13d96525f5deb148e01d73 (diff) |
deduplicate disco response
fixes #283
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser/IqParser.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/IqParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/IqParser.java b/src/main/java/de/pixart/messenger/parser/IqParser.java index fae27730d..24e8aad98 100644 --- a/src/main/java/de/pixart/messenger/parser/IqParser.java +++ b/src/main/java/de/pixart/messenger/parser/IqParser.java @@ -321,7 +321,7 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived { account.getBlocklist().addAll(jids); if (packet.getType() == IqPacket.TYPE.SET) { boolean removed = false; - for(Jid jid : jids) { + for (Jid jid : jids) { removed |= mXmppConnectionService.removeBlockedConversations(account, jid); } if (removed) { @@ -359,7 +359,7 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived { mXmppConnectionService.sendIqPacket(account, response, null); } else if (packet.hasChild("open", "http://jabber.org/protocol/ibb") || packet.hasChild("data", "http://jabber.org/protocol/ibb") - || packet.hasChild("close","http://jabber.org/protocol/ibb")) { + || packet.hasChild("close", "http://jabber.org/protocol/ibb")) { mXmppConnectionService.getJingleConnectionManager() .deliverIbbPacket(account, packet); } else if (packet.hasChild("query", "http://jabber.org/protocol/disco#info")) { |