diff options
author | fiaxh <git@lightrise.org> | 2019-12-18 18:53:14 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-12-18 20:35:04 +0100 |
commit | c3532bdf3141bcf0cbf9e4ae7a926dcda4f132ef (patch) | |
tree | a6264c95b8cd05ea18abd4c811cdfed46f98d6af /libdino/src/service/conversation_manager.vala | |
parent | 321c3529f3fedbd5eaa9cd619ee408fb683921ca (diff) | |
download | dino-c3532bdf3141bcf0cbf9e4ae7a926dcda4f132ef.tar.gz dino-c3532bdf3141bcf0cbf9e4ae7a926dcda4f132ef.zip |
Refactor MAM catchup. Fetch from latest to earliest message.
Diffstat (limited to 'libdino/src/service/conversation_manager.vala')
-rw-r--r-- | libdino/src/service/conversation_manager.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/conversation_manager.vala b/libdino/src/service/conversation_manager.vala index 1ba53b35..c473ea77 100644 --- a/libdino/src/service/conversation_manager.vala +++ b/libdino/src/service/conversation_manager.vala @@ -163,7 +163,7 @@ public class ConversationManager : StreamInteractionModule, Object { if (stanza != null) { bool is_mam_message = Xep.MessageArchiveManagement.MessageFlag.get_flag(stanza) != null; - bool is_recent = message.local_time.compare(new DateTime.now_utc().add_hours(-24)) > 0; + bool is_recent = message.local_time.compare(new DateTime.now_utc().add_days(-3)) > 0; if (is_mam_message && !is_recent) return false; } stream_interactor.get_module(ConversationManager.IDENTITY).start_conversation(conversation); |