From e327a88898a90543f1de851274274139642c9a21 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 2 Sep 2020 16:21:00 +0200 Subject: [PATCH] Don't clear MAM id times on stream negotiated --- libdino/src/service/message_processor.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala index aedc0147..3e92e61f 100644 --- a/libdino/src/service/message_processor.vala +++ b/libdino/src/service/message_processor.vala @@ -50,7 +50,6 @@ public class MessageProcessor : StreamInteractionModule, Object { stream_interactor.connection_manager.stream_opened.connect((account, stream) => { debug("MAM: [%s] Reset catchup_id", account.bare_jid.to_string()); current_catchup_id.unset(account); - mam_times[account] = new HashMap(); }); } @@ -107,6 +106,8 @@ public class MessageProcessor : StreamInteractionModule, Object { } private void on_account_added(Account account) { + mam_times[account] = new HashMap(); + stream_interactor.module_manager.get_module(account, Xmpp.MessageModule.IDENTITY).received_message.connect( (stream, message) => { on_message_received.begin(account, message); });