mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Filters, Mark Unread/Read/Favourites FF removals + code and tests clean up (#2541)
This commit is contained in:
@@ -3787,23 +3787,6 @@ class UserDiscoveryServiceMock: UserDiscoveryServiceProtocol {
|
||||
return searchProfilesWithReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - fetchSuggestions
|
||||
|
||||
var fetchSuggestionsCallsCount = 0
|
||||
var fetchSuggestionsCalled: Bool {
|
||||
return fetchSuggestionsCallsCount > 0
|
||||
}
|
||||
var fetchSuggestionsReturnValue: Result<[UserProfileProxy], UserDiscoveryErrorType>!
|
||||
var fetchSuggestionsClosure: (() async -> Result<[UserProfileProxy], UserDiscoveryErrorType>)?
|
||||
|
||||
func fetchSuggestions() async -> Result<[UserProfileProxy], UserDiscoveryErrorType> {
|
||||
fetchSuggestionsCallsCount += 1
|
||||
if let fetchSuggestionsClosure = fetchSuggestionsClosure {
|
||||
return await fetchSuggestionsClosure()
|
||||
} else {
|
||||
return fetchSuggestionsReturnValue
|
||||
}
|
||||
}
|
||||
}
|
||||
class UserIndicatorControllerMock: UserIndicatorControllerProtocol {
|
||||
var window: UIWindow?
|
||||
|
||||
Reference in New Issue
Block a user