Do not fake offline mode when updating remote

This commit is contained in:
davidoskky 2022-08-17 20:12:25 +02:00
parent 0fa133d89e
commit 8f5cc6efa4

View File

@ -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