mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
Update app/src/main/java/org/thoughtcrime/securesms/util/VersionUtil.kt
Co-authored-by: Andrew <andrewgallasch@gmail.com>
This commit is contained in:
parent
4b87e926c4
commit
83ea71de24
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user