From ee24baa0fd62f959a2d91c787d3a405281eeb311 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 4 Apr 2014 22:52:32 +0200 Subject: marked incoming carbons as unread --- .../siacs/conversations/services/XmppConnectionService.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') 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(); + } } } -- cgit v1.2.3