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:
Joas Schilling 2019-10-31 09:20:37 +01:00 committed by Mario Đanić
parent 32fa176743
commit 02092d0471

View File

@ -95,10 +95,7 @@ public class ApiUtils {
@Nullable String searchQuery) {
RetrofitBucket retrofitBucket = getRetrofitBucketForContactsSearch(baseUrl, searchQuery);
retrofitBucket.setUrl(baseUrl + ocsApiVersion + "/core/autocomplete/get");
retrofitBucket.getQueryMap().put("itemId", "new");
retrofitBucket.getQueryMap().put("limit", "50");
return retrofitBucket;
}