ignore spoofed stanzas in facebook chat
This commit is contained in:
parent
07c7f5bc08
commit
c173d78950
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue