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
1 changed files with 1 additions and 1 deletions

View File

@ -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 {