mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +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() {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user