mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
Use server default value for autocomplete limit
There is no real need to use a custom limit, when the server has a sane default as well as a setting to overwrite this. Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
32fa176743
commit
02092d0471
@ -95,10 +95,7 @@ public class ApiUtils {
|
|||||||
@Nullable String searchQuery) {
|
@Nullable String searchQuery) {
|
||||||
RetrofitBucket retrofitBucket = getRetrofitBucketForContactsSearch(baseUrl, searchQuery);
|
RetrofitBucket retrofitBucket = getRetrofitBucketForContactsSearch(baseUrl, searchQuery);
|
||||||
retrofitBucket.setUrl(baseUrl + ocsApiVersion + "/core/autocomplete/get");
|
retrofitBucket.setUrl(baseUrl + ocsApiVersion + "/core/autocomplete/get");
|
||||||
|
|
||||||
retrofitBucket.getQueryMap().put("itemId", "new");
|
retrofitBucket.getQueryMap().put("itemId", "new");
|
||||||
retrofitBucket.getQueryMap().put("limit", "50");
|
|
||||||
|
|
||||||
return retrofitBucket;
|
return retrofitBucket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user