mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
log reason for message failure
This commit is contained in:
parent
36d31e7e24
commit
6b8e1ecb95
@ -202,6 +202,13 @@ public class MessageParser extends AbstractParser implements
|
||||
if (packet.getType() == MessagePacket.TYPE_ERROR) {
|
||||
Jid from = packet.getFrom();
|
||||
if (from != null) {
|
||||
Element error = packet.findChild("error");
|
||||
String text = error == null ? null : error.findChildContent("text");
|
||||
if (text != null) {
|
||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": sending message to "+ from+ " failed - " + text);
|
||||
} else if (error != null) {
|
||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": sending message to "+ from+ " failed - " + error);
|
||||
}
|
||||
Message message = mXmppConnectionService.markMessage(account,
|
||||
from.toBareJid(),
|
||||
packet.getId(),
|
||||
|
Loading…
Reference in New Issue
Block a user