Do not fake offline mode when updating remote

This commit is contained in:
davidoskky 2022-08-17 20:12:25 +02:00
parent 0f3c48dd8e
commit 13ea7a693b

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