mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-18 06:45:06 -05:00
fixed #356
This commit is contained in:
parent
8358a513f0
commit
2ab14a6ff2
@ -189,7 +189,7 @@ public class MessageParser extends AbstractParser implements
|
|||||||
}
|
}
|
||||||
Element message = forwarded.findChild("message");
|
Element message = forwarded.findChild("message");
|
||||||
if ((message == null) || (!message.hasChild("body"))) {
|
if ((message == null) || (!message.hasChild("body"))) {
|
||||||
if (status == Message.STATUS_RECIEVED) {
|
if (status == Message.STATUS_RECIEVED && message.getAttribute("from")!=null) {
|
||||||
parseNormal(message, account);
|
parseNormal(message, account);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -296,6 +296,7 @@ public class MessageParser extends AbstractParser implements
|
|||||||
if (node != null) {
|
if (node != null) {
|
||||||
if (node.equals("urn:xmpp:avatar:metadata")) {
|
if (node.equals("urn:xmpp:avatar:metadata")) {
|
||||||
Avatar avatar = Avatar.parseMetadata(items);
|
Avatar avatar = Avatar.parseMetadata(items);
|
||||||
|
if (avatar!=null) {
|
||||||
avatar.owner = from;
|
avatar.owner = from;
|
||||||
if (mXmppConnectionService.getFileBackend().isAvatarCached(
|
if (mXmppConnectionService.getFileBackend().isAvatarCached(
|
||||||
avatar)) {
|
avatar)) {
|
||||||
@ -308,6 +309,7 @@ public class MessageParser extends AbstractParser implements
|
|||||||
} else {
|
} else {
|
||||||
mXmppConnectionService.fetchAvatar(account, avatar);
|
mXmppConnectionService.fetchAvatar(account, avatar);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.d("xmppService", account.getJid() + ": " + node + " from "
|
Log.d("xmppService", account.getJid() + ": " + node + " from "
|
||||||
+ from);
|
+ from);
|
||||||
|
Loading…
Reference in New Issue
Block a user