ignore spoofed stanzas in facebook chat

This commit is contained in:
Daniel Gultsch 2015-09-17 14:13:38 +02:00
parent 07c7f5bc08
commit c173d78950

View file

@ -480,7 +480,7 @@ public class XmppConnection implements Runnable {
final Pair<IqPacket, OnIqPacketReceived> packetCallbackDuple = packetCallbacks.get(packet.getId()); final Pair<IqPacket, OnIqPacketReceived> packetCallbackDuple = packetCallbacks.get(packet.getId());
// Packets to the server should have responses from the server // Packets to the server should have responses from the server
if (packetCallbackDuple.first.toServer(account)) { if (packetCallbackDuple.first.toServer(account)) {
if (packet.fromServer(account)) { if (packet.fromServer(account) || account.getJid().getDomainpart().equals("chat.facebook.com")) {
callback = packetCallbackDuple.second; callback = packetCallbackDuple.second;
packetCallbacks.remove(packet.getId()); packetCallbacks.remove(packet.getId());
} else { } else {