aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <inputmice@siacs.eu>2014-12-30 09:36:00 +0100
committerDaniel Gultsch <inputmice@siacs.eu>2014-12-30 09:36:00 +0100
commit8f93f9c314d1bf731eac64007f3c9459fa92de1f (patch)
tree5ad229c42240fa784610e8a01427a4f54408670e /src/main/java/eu
parent3c5d7d4f1b8af9568fdc7ba17f4c6d0a11167a4e (diff)
improved fromServer filter
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/parser/IqParser.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/parser/IqParser.java b/src/main/java/eu/siacs/conversations/parser/IqParser.java
index 8e14936e..e84545fc 100644
--- a/src/main/java/eu/siacs/conversations/parser/IqParser.java
+++ b/src/main/java/eu/siacs/conversations/parser/IqParser.java
@@ -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