File tree 2 files changed +7
-4
lines changed
app/src/main/java/com/infomaniak/mail
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* Infomaniak Mail - Android
3
- * Copyright (C) 2022-2023 Infomaniak Network SA
3
+ * Copyright (C) 2022-2024 Infomaniak Network SA
4
4
*
5
5
* This program is free software: you can redistribute it and/or modify
6
6
* it under the terms of the GNU General Public License as published by
@@ -88,7 +88,10 @@ class LoginActivity : AppCompatActivity() {
88
88
if (AccountUtils .getUserById(apiToken.userId) != null ) return getErrorResponse(RCore .string.errorUserAlreadyPresent)
89
89
90
90
InfomaniakCore .bearerToken = apiToken.accessToken
91
- val userProfileResponse = ApiRepository .getUserProfile(HttpClient .okHttpClientNoTokenInterceptor)
91
+ val userProfileResponse = ApiRepository .getUserProfile(
92
+ HttpClient .okHttpClientNoTokenInterceptor,
93
+ ignoreDefaultAvatar = true ,
94
+ )
92
95
93
96
if (userProfileResponse.result == ApiResponseStatus .ERROR ) return userProfileResponse
94
97
if (userProfileResponse.data == null ) return getErrorResponse(RCore .string.anErrorHasOccurred)
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Infomaniak Mail - Android
3
- * Copyright (C) 2022-2023 Infomaniak Network SA
3
+ * Copyright (C) 2022-2024 Infomaniak Network SA
4
4
*
5
5
* This program is free software: you can redistribute it and/or modify
6
6
* it under the terms of the GNU General Public License as published by
@@ -117,7 +117,7 @@ object AccountUtils : CredentialManager() {
117
117
}
118
118
119
119
suspend fun updateCurrentUser (okHttpClient : OkHttpClient = HttpClient .okHttpClient) {
120
- with (ApiRepository .getUserProfile(okHttpClient)) {
120
+ with (ApiRepository .getUserProfile(okHttpClient, ignoreDefaultAvatar = true )) {
121
121
if (result != ApiResponseStatus .ERROR ) requestUser(remoteUser = data ? : return )
122
122
}
123
123
}
You can’t perform that action at this time.
0 commit comments