aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/XmppConnectionService.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-10-07 16:02:52 +0200
committeriNPUTmice <daniel@gultsch.de>2014-10-07 16:02:52 +0200
commit3737a96dbb517dc9d1e39d2b15cf8539cc752a45 (patch)
tree19d9c5beb219921d30795248c8203e4ff4fd1f06 /src/eu/siacs/conversations/services/XmppConnectionService.java
parent919c98207bb317e2283084dcbaa34a5216997d85 (diff)
refactored read marker
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java5
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(),