mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
log reason why otr message won't be parsed
This commit is contained in:
parent
86b1865eec
commit
c2fbdbde83
@ -312,7 +312,7 @@ public class MessageParser extends AbstractParser implements
|
||||
}
|
||||
|
||||
boolean isTypeGroupChat = packet.getType() == MessagePacket.TYPE_GROUPCHAT;
|
||||
boolean isProperlyAddressed = (to != null ) && (!to.isBareJid() || account.countPresences() == 1);
|
||||
boolean isProperlyAddressed = (to != null ) && (!to.isBareJid() || account.countPresences() <= 1);
|
||||
boolean isMucStatusMessage = from.isBareJid() && mucUserElement != null && mucUserElement.hasChild("status");
|
||||
if (packet.fromAccount(account)) {
|
||||
status = Message.STATUS_SEND;
|
||||
@ -357,6 +357,7 @@ public class MessageParser extends AbstractParser implements
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": ignoring OTR message from "+from+" isForwarded="+Boolean.toString(isForwarded)+", isProperlyAddressed="+Boolean.valueOf(isProperlyAddressed));
|
||||
message = new Message(conversation, body, Message.ENCRYPTION_NONE, status);
|
||||
}
|
||||
} else if (pgpEncrypted != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user