From 401ecf9aa0849a8f71f9b3ee0b1968fb67fea671 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 3 May 2021 11:42:07 +1000 Subject: [PATCH] Lower configuration message send rate --- Session/Meta/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Session/Meta/AppDelegate.swift b/Session/Meta/AppDelegate.swift index 6c75b18a5..b2b65d728 100644 --- a/Session/Meta/AppDelegate.swift +++ b/Session/Meta/AppDelegate.swift @@ -7,7 +7,7 @@ extension AppDelegate { guard Storage.shared.getUser()?.name != nil else { return } let userDefaults = UserDefaults.standard let lastSync = userDefaults[.lastConfigurationSync] ?? .distantPast - guard Date().timeIntervalSince(lastSync) > 2 * 24 * 60 * 60, + guard Date().timeIntervalSince(lastSync) > 7 * 24 * 60 * 60, let configurationMessage = ConfigurationMessage.getCurrent() else { return } // Sync every 2 days let destination = Message.Destination.contact(publicKey: getUserHexEncodedPublicKey()) Storage.shared.write { transaction in