mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-25 20:58:28 +00:00
Ensure clock adjustments does not stop remote config refresh.
This commit is contained in:
parent
91be826c7d
commit
4e25e8aaa2
@ -143,7 +143,7 @@ public final class FeatureFlags {
|
||||
public static synchronized void refreshIfNecessary() {
|
||||
long timeSinceLastFetch = System.currentTimeMillis() - SignalStore.remoteConfigValues().getLastFetchTime();
|
||||
|
||||
if (timeSinceLastFetch > FETCH_INTERVAL) {
|
||||
if (timeSinceLastFetch < 0 || timeSinceLastFetch > FETCH_INTERVAL) {
|
||||
Log.i(TAG, "Scheduling remote config refresh.");
|
||||
ApplicationDependencies.getJobManager().add(new RemoteConfigRefreshJob());
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user