aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/parser/IqParser.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-12-27 22:14:05 +0100
committerChristian Schneppe <christian@pix-art.de>2018-12-27 22:14:05 +0100
commit85a49bc472ee2ad057955e5681c29d81435822f9 (patch)
tree06f78debdb0f197e8d8c9d0fcd1987ebd7627162 /src/main/java/de/pixart/messenger/parser/IqParser.java
parent32d10e4c19cba790cc13d96525f5deb148e01d73 (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.java4
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")) {