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