improved fromServer filter
This commit is contained in:
parent
3c5d7d4f1b
commit
8f93f9c314
|
@ -72,7 +72,10 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean fromServer(final Account account, final IqPacket packet) {
|
public static boolean fromServer(final Account account, final IqPacket packet) {
|
||||||
return packet.getFrom() == null || packet.getFrom().equals(account.getServer()) || packet.getFrom().toBareJid().equals(account.getJid().toBareJid());
|
return packet.getFrom() == null
|
||||||
|
|| packet.getFrom().equals(account.getServer())
|
||||||
|
|| packet.getFrom().equals(account.getJid().toBareJid())
|
||||||
|
|| packet.getFrom().equals(account.getJid());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue