aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index 722245b2e..f2b000dbf 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();
+ }
}
}