Code review fixes.

This commit is contained in:
Onuray Sahin 2021-05-10 17:38:40 +03:00
parent e74f4d570d
commit 0f8a641510
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ interface ProfileService {
/** /**
* Get the combined profile information for this user. * Get the combined profile information for this user.
* This may return keys which are not limited to displayname or avatar_url. * This may return keys which are not limited to displayname or avatar_url.
* If server is configured as limit_profile_requests_to_users_who_share_rooms: true then response will be HTTP 403. * If server is configured as limit_profile_requests_to_users_who_share_rooms: true then response can be HTTP 403.
* @param userId the userId param to look for * @param userId the userId param to look for
* *
*/ */

View File

@ -33,7 +33,7 @@ internal interface ProfileAPI {
* Get the combined profile information for this user. * Get the combined profile information for this user.
* This API may be used to fetch the user's own profile information or other users; either locally or on remote homeservers. * This API may be used to fetch the user's own profile information or other users; either locally or on remote homeservers.
* This API may return keys which are not limited to displayname or avatar_url. * This API may return keys which are not limited to displayname or avatar_url.
* If server is configured as limit_profile_requests_to_users_who_share_rooms: true then response will be HTTP 403. * If server is configured as limit_profile_requests_to_users_who_share_rooms: true then response can be HTTP 403.
* @param userId the user id to fetch profile info * @param userId the user id to fetch profile info
*/ */
@GET(NetworkConstants.URI_API_PREFIX_PATH_R0 + "profile/{userId}") @GET(NetworkConstants.URI_API_PREFIX_PATH_R0 + "profile/{userId}")

View File

@ -141,7 +141,7 @@ class UserListViewModel @AssistedInject constructor(@Assisted initialState: User
// In this case allow inviting valid user ids. // In this case allow inviting valid user ids.
User( User(
userId = search, userId = search,
displayName = search, displayName = null,
avatarUrl = null avatarUrl = null
).toOptional() ).toOptional()
} }