Do not fake offline mode when updating remote
This commit is contained in:
parent
0f3c48dd8e
commit
13ea7a693b
@ -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