aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-09-07 21:29:40 +0200
committerfiaxh <git@lightrise.org>2020-09-10 19:35:05 +0200
commitc01d09d5198037582145fc68bba62a0fb947b7ec (patch)
treebc4fd9f74e803c8df190378650700e71c0e62ba0 /libdino
parent8a2edbe661b77dfd66fb038c45690017129db96b (diff)
downloaddino-c01d09d5198037582145fc68bba62a0fb947b7ec.tar.gz
dino-c01d09d5198037582145fc68bba62a0fb947b7ec.zip
Improve message resending
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/message_processor.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala
index 5ddf86a6..80c6b2d8 100644
--- a/libdino/src/service/message_processor.vala
+++ b/libdino/src/service/message_processor.vala
@@ -46,6 +46,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
stream_interactor.account_added.connect(on_account_added);
stream_interactor.stream_negotiated.connect(send_unsent_chat_messages);
+ stream_interactor.stream_resumed.connect(send_unsent_chat_messages);
stream_interactor.connection_manager.stream_opened.connect((account, stream) => {
debug("MAM: [%s] Reset catchup_id", account.bare_jid.to_string());
@@ -662,7 +663,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
if (stream != stream_interactor.get_stream(conversation.account)) {
Timeout.add_seconds(3, () => {
- send_xmpp_message(message, conversation, true);
+ send_unsent_chat_messages(conversation.account);
return false;
});
}