aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-04-06 15:33:43 +0200
committerfiaxh <git@lightrise.org>2020-04-06 15:33:43 +0200
commit5b2683dfa5241777d621866e4e0a0790766433c2 (patch)
tree55ee240204fd3d0bab614c4e6de5fa29bc7ccbdc /libdino
parentd091a6c3cd0812873bcdef53c51a2f60e12f2b8a (diff)
downloaddino-5b2683dfa5241777d621866e4e0a0790766433c2.tar.gz
dino-5b2683dfa5241777d621866e4e0a0790766433c2.zip
Last message correction fixes
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/message_correction.vala3
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)