Do not fake offline mode when updating remote
This commit is contained in:
parent
0fa133d89e
commit
8f5cc6efa4
@ -322,7 +322,8 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails
|
|||||||
|
|
||||||
suspend fun updateRemote(): Boolean {
|
suspend fun updateRemote(): Boolean {
|
||||||
var response = false
|
var response = false
|
||||||
if (isConnectionAvailable.value && !offlineOverride) {
|
offlineOverride = false
|
||||||
|
if (isConnectionAvailable.value) {
|
||||||
response = api.update()?.isSuccess == true
|
response = api.update()?.isSuccess == true
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user