From e9ea79cc8e0c6f427f8c03ee4585911893792652 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Thu, 11 Feb 2021 13:56:06 -0500 Subject: [PATCH] Shorten eviction time to 7 days (to match message retention time). --- .../whispersystems/textsecuregcm/push/ApnFallbackManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/push/ApnFallbackManager.java b/service/src/main/java/org/whispersystems/textsecuregcm/push/ApnFallbackManager.java index fd5818f8a..6e6215a25 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/push/ApnFallbackManager.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/push/ApnFallbackManager.java @@ -186,7 +186,7 @@ public class ApnFallbackManager implements Managed { long deviceLastSeen = device.getLastSeen(); - if (deviceLastSeen < System.currentTimeMillis() - TimeUnit.DAYS.toMillis(90)) { + if (deviceLastSeen < System.currentTimeMillis() - TimeUnit.DAYS.toMillis(7)) { evicted.mark(); remove(account, device); return;