diff options
author | fiaxh <git@lightrise.org> | 2020-09-02 16:21:00 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-09-02 16:21:00 +0200 |
commit | e327a88898a90543f1de851274274139642c9a21 (patch) | |
tree | 9cface30ee204e994004734f76aafc6e9300daa5 | |
parent | e6a90fc25c19b4cfceff7b1d89c58927753ee98d (diff) | |
download | dino-e327a88898a90543f1de851274274139642c9a21.tar.gz dino-e327a88898a90543f1de851274274139642c9a21.zip |
Don't clear MAM id times on stream negotiated
-rw-r--r-- | libdino/src/service/message_processor.vala | 3 |
1 files changed, 2 insertions, 1 deletions
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<string, DateTime>(); }); } @@ -107,6 +106,8 @@ public class MessageProcessor : StreamInteractionModule, Object { } private void on_account_added(Account account) { + mam_times[account] = new HashMap<string, DateTime>(); + stream_interactor.module_manager.get_module(account, Xmpp.MessageModule.IDENTITY).received_message.connect( (stream, message) => { on_message_received.begin(account, message); }); |