Update app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt

Co-authored-by: Andrew <andrewgallasch@gmail.com>
This commit is contained in:
ThomasSession 2024-07-30 14:49:45 +10:00 committed by GitHub
parent 4b87e926c4
commit 83ea71de24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {