diff options
Diffstat (limited to 'libdino/src')
-rw-r--r-- | libdino/src/service/message_correction.vala | 3 |
1 files changed, 3 insertions, 0 deletions
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) |