log background msgs not foreground msgs

This commit is contained in:
Daniel Gultsch 2016-06-01 11:37:03 +02:00
parent add8e2cb74
commit 91732b89ea

View file

@ -534,7 +534,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
}
}
} else if (!packet.hasChild("body")){ //no body
if (Config.BACKGROUND_STANZA_LOGGING && !mXmppConnectionService.checkListeners()) {
if (Config.BACKGROUND_STANZA_LOGGING && mXmppConnectionService.checkListeners()) {
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": " + packet+ " (carbon="+Boolean.toString(isCarbon)+")");
}
Conversation conversation = mXmppConnectionService.find(account, from.toBareJid());