From fc78a086575bca67f78c0ad05c571a875be1cbed Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Thu, 9 Jan 2020 14:55:01 +0300 Subject: [PATCH] Fix inverted should_do_gossip condition --- src/mimefactory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mimefactory.rs b/src/mimefactory.rs index c38791a2c..538af1cd2 100644 --- a/src/mimefactory.rs +++ b/src/mimefactory.rs @@ -284,7 +284,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> { Loaded::Message { chat } => { // beside key- and member-changes, force re-gossip every 48 hours let gossiped_timestamp = chat.get_gossiped_timestamp(self.context); - if gossiped_timestamp == 0 || (gossiped_timestamp + (2 * 24 * 60 * 60)) > time() { + if time() > gossiped_timestamp + (2 * 24 * 60 * 60) { return true; }