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 committed Mar 4, 2024
1 parent 62bac39 commit c85953a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 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 c85953a

Please sign in to comment.