diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-09-29 18:28:13 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-09-29 18:28:13 +0200 |
commit | 511b7a53f41f8254449e6c2c6eff795f728e7a33 (patch) | |
tree | 4ff79e0bd9f041f698a0d6787069c67f0bf53e0e /src/eu/siacs/conversations/parser/MessageParser.java | |
parent | 87010e6094cc35ece98d3beadbbfbc59ea0a25b3 (diff) |
notifiy only when necessary
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/parser/MessageParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java index d1964b8c..af0c96e9 100644 --- a/src/eu/siacs/conversations/parser/MessageParser.java +++ b/src/eu/siacs/conversations/parser/MessageParser.java @@ -417,7 +417,7 @@ public class MessageParser extends AbstractParser implements lastCarbonMessageReceived = SystemClock .elapsedRealtime(); notify = false; - message.getConversation().markRead(); + mXmppConnectionService.markRead(message.getConversation()); } else { message.markUnread(); } @@ -474,7 +474,7 @@ public class MessageParser extends AbstractParser implements } notify = notify && !conversation.isMuted(); if (notify) { - mXmppConnectionService.pushNotification(message); + mXmppConnectionService.getNotificationService().push(message); } mXmppConnectionService.updateConversationUi(); } |