improved fromServer filter

This commit is contained in:
Daniel Gultsch 2014-12-30 09:36:00 +01:00
parent 3c5d7d4f1b
commit 8f93f9c314
1 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,10 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
}
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