From c712e6ed4ad1e5330e416a4de05195c053b89d57 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Thu, 22 Mar 2018 14:37:25 +0100 Subject: [PATCH] Do not mark messages as read if they are only marked as received --- libdino/src/service/counterpart_interaction_manager.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/libdino/src/service/counterpart_interaction_manager.vala b/libdino/src/service/counterpart_interaction_manager.vala index 1548d9fa..fb10d20c 100644 --- a/libdino/src/service/counterpart_interaction_manager.vala +++ b/libdino/src/service/counterpart_interaction_manager.vala @@ -66,6 +66,7 @@ public class CounterpartInteractionManager : StreamInteractionModule, Object { private void on_chat_marker_received(Account account, Jid jid, string marker, string stanza_id) { bool own_marker = account.bare_jid.to_string() == jid.bare_jid.to_string(); if (own_marker) { + if (marker != Xep.ChatMarkers.MARKER_DISPLAYED && marker != Xep.ChatMarkers.MARKER_ACKNOWLEDGED) return; Conversation? conversation = stream_interactor.get_module(MessageStorage.IDENTITY).get_conversation_for_stanza_id(account, stanza_id); if (conversation == null) return; Entities.Message? message = stream_interactor.get_module(MessageStorage.IDENTITY).get_message_by_id(stanza_id, conversation);