Improve user search using the GET profile (#754)

* Add getProfile in ClientProxyProtocol

* Add fetchProfileIfNeeded

* Refactor search

* Update StartChatSuggestedUserCell UI

* Add showProfilePopover action

* Remove popover code

* Add UTs in StartChatViewModelTests

* Add UI tests

* Cleanup code

* Refine design

* Fix design

* Localise StartChatSuggestedUserCell

* Update localisations

* Update StartChatSuggestedUserCell design

* Fix UT

* Fix PR comments

* Apply suggestions

* Fix typo
This commit is contained in:
Alfonso Grillo
2023-04-04 10:47:41 +02:00
committed by GitHub
parent b089cd6b62
commit ea979d6515
17 changed files with 232 additions and 48 deletions
@@ -32,6 +32,7 @@ enum ClientProxyError: Error {
case failedRetrievingSessionVerificationController
case failedLoadingMedia
case failedSearchingUsers
case failedGettingUserProfile
}
enum SlidingSyncConstants {
@@ -94,4 +95,6 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
func setPusher(with configuration: PusherConfiguration) async throws
func searchUsers(searchTerm: String, limit: UInt) async -> Result<SearchUsersResults, ClientProxyError>
func getProfile(for userID: String) async -> Result<UserProfile, ClientProxyError>
}