Fix inverted should_do_gossip condition

This commit is contained in:
Alexander Krotov
2020-01-09 14:55:01 +03:00
parent 7b3cc95ab7
commit fc78a08657

View File

@@ -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;
}