This commit is contained in:
iNPUTmice 2014-08-15 13:11:33 +02:00
parent 8358a513f0
commit 2ab14a6ff2
1 changed files with 12 additions and 10 deletions

View File

@ -189,7 +189,7 @@ public class MessageParser extends AbstractParser implements
}
Element message = forwarded.findChild("message");
if ((message == null) || (!message.hasChild("body"))) {
if (status == Message.STATUS_RECIEVED) {
if (status == Message.STATUS_RECIEVED && message.getAttribute("from")!=null) {
parseNormal(message, account);
}
return null;
@ -296,6 +296,7 @@ public class MessageParser extends AbstractParser implements
if (node != null) {
if (node.equals("urn:xmpp:avatar:metadata")) {
Avatar avatar = Avatar.parseMetadata(items);
if (avatar!=null) {
avatar.owner = from;
if (mXmppConnectionService.getFileBackend().isAvatarCached(
avatar)) {
@ -308,6 +309,7 @@ public class MessageParser extends AbstractParser implements
} else {
mXmppConnectionService.fetchAvatar(account, avatar);
}
}
} else {
Log.d("xmppService", account.getJid() + ": " + node + " from "
+ from);