Skip to content

Commit c13fed5

Browse files
committed
Avatar: It's always fetched, don't log dead info
1 parent 52b0b1c commit c13fed5

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

opencloudApp/src/main/java/eu/opencloud/android/operations/SyncProfileOperation.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import timber.log.Timber
4040
*
4141
* First: Synchronize user info
4242
* Second: Synchronize user quota
43-
* Third: Synchronize user avatar
4443
*
4544
* If one step fails, next one is not performed since it may fail too.
4645
*/
@@ -77,13 +76,6 @@ class SyncProfileOperation(
7776
}
7877
}
7978
}
80-
val shouldFetchAvatar = storedCapabilities?.isFetchingAvatarAllowed() ?: true
81-
if (shouldFetchAvatar) {
82-
// Avatar fetching is now handled by Coil on demand
83-
Timber.d("Avatar sync handled by Coil for account ${account.name}")
84-
} else {
85-
Timber.d("Avatar for this account: ${account.name} won't be synced due to capabilities ")
86-
}
8779
} ?: Timber.d("User profile was not synchronized")
8880
}
8981
} catch (e: Exception) {

opencloudDomain/src/main/java/eu/opencloud/android/domain/capabilities/model/OCCapability.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ data class OCCapability(
6161
return (filesBigFileChunking.isTrue && doubleChunkingVersion != null && doubleChunkingVersion >= 1.0)
6262
}
6363

64-
fun isFetchingAvatarAllowed(): Boolean =
65-
filesSharingUserProfilePicture.isTrue || filesSharingUserProfilePicture.isUnknown
66-
6764
fun isOpenInWebAllowed(): Boolean = filesAppProviders?.openWebUrl?.isNotBlank() ?: false
6865

6966
fun isSpacesAllowed(): Boolean = spaces?.enabled == true

0 commit comments

Comments
 (0)