diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 722245b2..f2b000db 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -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(); - notify = false; - } else { - notify = true; + if (message != null) { + if (message.getStatus() == Message.STATUS_SEND) { + notify = false; + message.getConversation().markRead(); + } else { + message.markUnread(); + } } }