fixed bug in message parser

This commit is contained in:
iNPUTmice 2014-07-27 22:31:33 +02:00
parent af85964820
commit 4c90bd9b46

View file

@ -174,13 +174,17 @@ public class MessageParser extends AbstractParser implements
}
if (status == Message.STATUS_RECIEVED) {
fullJid = message.getAttribute("from");
if (fullJid == null ) {
return null;
} else {
updateLastseen(message, account, true);
}
} else {
fullJid = message.getAttribute("to");
}
if (fullJid==null) {
if (fullJid == null) {
return null;
}
}
String[] parts = fullJid.split("/");
Conversation conversation = mXmppConnectionService
.findOrCreateConversation(account, parts[0], false);