mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 14:27:42 +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:
@@ -50,7 +50,7 @@ class VersionUtil(
|
|||||||
private fun fetchVersionData() {
|
private fun fetchVersionData() {
|
||||||
// only perform this if at least 4h has elapsed since th last successful check
|
// only perform this if at least 4h has elapsed since th last successful check
|
||||||
val lastCheck = System.currentTimeMillis() - prefs.getLastVersionCheck()
|
val lastCheck = System.currentTimeMillis() - prefs.getLastVersionCheck()
|
||||||
if(lastCheck < FOUR_HOURS) return
|
if (lastCheck < FOUR_HOURS) return
|
||||||
|
|
||||||
job?.cancel()
|
job?.cancel()
|
||||||
job = scope.launch {
|
job = scope.launch {
|
||||||
|
Reference in New Issue
Block a user