Skip to content

Commit

Permalink
Remove the no_avatar_default choice when getting the profile
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX authored and KevinBoulongne committed Mar 5, 2024
1 parent da9f0b7 commit be1e7a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@ class LoginActivity : AppCompatActivity() {
return getErrorResponse(R.string.errorUserAlreadyPresent)
} ?: run {
InfomaniakCore.bearerToken = apiToken.accessToken
val userProfileResponse = ApiRepository.getUserProfile(
HttpClient.okHttpClientNoTokenInterceptor,
ignoreDefaultAvatar = true,
)
val userProfileResponse = ApiRepository.getUserProfile(HttpClient.okHttpClientNoTokenInterceptor)
if (userProfileResponse.result == ApiResponseStatus.ERROR) {
return userProfileResponse
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ object AccountUtils : CredentialManager() {
okHttpClient: OkHttpClient = HttpClient.okHttpClient,
) = withContext(Dispatchers.IO) {

val (userResult, user) = with(ApiRepository.getUserProfile(okHttpClient, ignoreDefaultAvatar = true)) {
val (userResult, user) = with(ApiRepository.getUserProfile(okHttpClient)) {
result to (data ?: return@withContext)
}

Expand Down

0 comments on commit be1e7a5

Please sign in to comment.