marked incoming carbons as unread

This commit is contained in:
Daniel Gultsch 2014-04-04 22:52:32 +02:00
parent 34bd79ac04
commit ee24baa0fd
1 changed files with 7 additions and 5 deletions

View File

@ -136,11 +136,13 @@ public class XmppConnectionService extends Service {
|| (packet.hasChild("sent"))) {
message = MessageParser.parseCarbonMessage(packet, account,
service);
if ((message != null)&&(message.getStatus() == Message.STATUS_SEND)) {
message.getConversation().markRead();
if (message != null) {
if (message.getStatus() == Message.STATUS_SEND) {
notify = false;
message.getConversation().markRead();
} else {
notify = true;
message.markUnread();
}
}
}