Consider offline override before updating remote
This commit is contained in:
parent
7c37b183d7
commit
97d5063339
@ -298,13 +298,8 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails
|
|||||||
return success
|
return success
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun updateRemote(): Boolean {
|
suspend fun updateRemote(): Boolean =
|
||||||
var response = false
|
isNetworkAvailable() && api.update()?.isSuccess == true
|
||||||
if (isConnectionAvailable.value) {
|
|
||||||
response = api.update()?.isSuccess == true
|
|
||||||
}
|
|
||||||
return response
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun login(): Boolean {
|
suspend fun login(): Boolean {
|
||||||
var result = false
|
var result = false
|
||||||
|
Loading…
Reference in New Issue
Block a user