aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-08 06:04:06 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-08 06:04:06 +0100
commit83c5fdaf0efcb3c85c0d753b347d0a53c7ac9495 (patch)
tree330f8235b2fdc4ddc4cd2e41557b4b24b7f3dbdc
parent9a5a429888409fb4e52432e86f8dca49d4e97cdb (diff)
step three. unread if sent msg in muc arrives. to cryptic? it does awesome shit to you
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index 6495b4ab..337f928c 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -131,6 +131,9 @@ public class XmppConnectionService extends Service {
if (message != null) {
if (message.getStatus() == Message.STATUS_RECIEVED) {
message.markUnread();
+ } else {
+ message.getConversation().markRead();
+ notify = false;
}
}
} else if (packet.getType() == MessagePacket.TYPE_ERROR) {