diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-10-07 16:02:52 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-10-07 16:02:52 +0200 |
commit | 3737a96dbb517dc9d1e39d2b15cf8539cc752a45 (patch) | |
tree | 19d9c5beb219921d30795248c8203e4ff4fd1f06 /src/eu/siacs/conversations/services | |
parent | 919c98207bb317e2283084dcbaa34a5216997d85 (diff) |
refactored read marker
Diffstat (limited to 'src/eu/siacs/conversations/services')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index ca69b5309..6aac3f934 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1632,10 +1632,11 @@ public class XmppConnectionService extends Service { } public void markRead(Conversation conversation, boolean calledByUi) { - conversation.markRead(); mNotificationService.clear(conversation); - String id = conversation.popLatestMarkableMessageId(); + String id = conversation.getLatestMarkableMessageId(); + conversation.markRead(); if (confirmMessages() && id != null && calledByUi) { + Log.d(Config.LOGTAG,conversation.getAccount().getJid()+": sending read marker for "+conversation.getName()); Account account = conversation.getAccount(); String to = conversation.getContactJid(); this.sendMessagePacket(conversation.getAccount(), |