aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-09-17 14:13:38 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-09-17 14:13:38 +0200
commitc173d78950fd495294691d1803d60ca868896a8f (patch)
tree5d89f02dec166ecc10507a6141d48be6aa214381 /src/main/java/eu/siacs/conversations
parent07c7f5bc086de3f99396a773371e76cbbb2901e0 (diff)
ignore spoofed stanzas in facebook chat
Diffstat (limited to 'src/main/java/eu/siacs/conversations')
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java
index a65f51fef..870f50d5d 100644
--- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -480,7 +480,7 @@ public class XmppConnection implements Runnable {
final Pair<IqPacket, OnIqPacketReceived> packetCallbackDuple = packetCallbacks.get(packet.getId());
// Packets to the server should have responses from the server
if (packetCallbackDuple.first.toServer(account)) {
- if (packet.fromServer(account)) {
+ if (packet.fromServer(account) || account.getJid().getDomainpart().equals("chat.facebook.com")) {
callback = packetCallbackDuple.second;
packetCallbacks.remove(packet.getId());
} else {