From 83ea71de246ce3d68319632ac80fa75886ef5106 Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Tue, 30 Jul 2024 14:49:45 +1000 Subject: [PATCH] Update app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt Co-authored-by: Andrew --- .../main/java/org/thoughtcrime/securesms/util/VersionUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt b/app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt index 68a5982da5..76075b4ac1 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt @@ -50,7 +50,7 @@ class VersionUtil( private fun fetchVersionData() { // only perform this if at least 4h has elapsed since th last successful check val lastCheck = System.currentTimeMillis() - prefs.getLastVersionCheck() - if(lastCheck < FOUR_HOURS) return + if (lastCheck < FOUR_HOURS) return job?.cancel() job = scope.launch {