aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/XmppConnectionService.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-04 17:58:53 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-04 17:58:53 +0200
commit34bd79ac04e6e7908faeacd9b1bcfa50bc73397e (patch)
treea4191f9b75a408ece2ceb4598aa91093fff32502 /src/eu/siacs/conversations/services/XmppConnectionService.java
parentb9243033dfd8fddca4a727018e6e1bbd720b771f (diff)
notify on incomming received carbon messages
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index 786605ab..722245b2 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -136,10 +136,12 @@ public class XmppConnectionService extends Service {
|| (packet.hasChild("sent"))) {
message = MessageParser.parseCarbonMessage(packet, account,
service);
- if (message != null) {
+ if ((message != null)&&(message.getStatus() == Message.STATUS_SEND)) {
message.getConversation().markRead();
+ notify = false;
+ } else {
+ notify = true;
}
- notify = false;
}
} else if (packet.getType() == MessagePacket.TYPE_GROUPCHAT) {