User search: provide 10 results not 5

Also refactor slightly so the caller specifies the number of
results, which lets all the constants sit in the repository.
This commit is contained in:
Chris Smith
2023-06-01 10:22:19 +01:00
parent 9bc67d88f3
commit 90082c909d
5 changed files with 8 additions and 11 deletions
@@ -21,6 +21,6 @@ import io.element.android.libraries.matrix.api.user.MatrixUser
interface UserListDataSource {
//TODO should probably have a flow
suspend fun search(query: String): List<MatrixUser>
suspend fun search(query: String, count: Long): List<MatrixUser>
suspend fun getProfile(userId: UserId): MatrixUser?
}