From 5b2683dfa5241777d621866e4e0a0790766433c2 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 6 Apr 2020 15:33:43 +0200 Subject: Last message correction fixes --- libdino/src/service/message_correction.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libdino/src/service') diff --git a/libdino/src/service/message_correction.vala b/libdino/src/service/message_correction.vala index 90d0580f..e38fd251 100644 --- a/libdino/src/service/message_correction.vala +++ b/libdino/src/service/message_correction.vala @@ -47,6 +47,9 @@ public class MessageCorrection : StreamInteractionModule, MessageListener { outstanding_correction_nodes[out_message.stanza_id] = stanza_id; stream_interactor.get_module(MessageStorage.IDENTITY).add_message(out_message, conversation); stream_interactor.get_module(MessageProcessor.IDENTITY).send_xmpp_message(out_message, conversation); + if (conversation.read_up_to != null && conversation.read_up_to.equals(old_message)) { // TODO nicer + conversation.read_up_to = out_message; + } db.message_correction.insert() .value(db.message_correction.message_id, out_message.id) -- cgit v1.2.3-70-g09d2