From c01d09d5198037582145fc68bba62a0fb947b7ec Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 7 Sep 2020 21:29:40 +0200 Subject: Improve message resending --- libdino/src/service/message_processor.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdino/src') 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; }); } -- cgit v1.2.3-70-g09d2