Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 64bfd6a

Browse files
authored
Merge pull request #314 from owncloud/fix/short_names_not_found_as_recipients
Remove search min length capability
2 parents 5ecd3c9 + 54d03cd commit 64bfd6a

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/GetRemoteCapabilitiesOperation.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() {
7979
return result
8080
}
8181

82-
Timber.d("Successful response: " + response!!)
82+
Timber.d("Successful response: $response")
8383

8484
// Parse the response
8585
val respJSON = JSONObject(response)
@@ -124,11 +124,6 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() {
124124
respFilesSharing.getBoolean(PROPERTY_API_ENABLED)
125125
)
126126
}
127-
if (respFilesSharing.has(PROPERTY_SEARCH_MIN_LENGTH)) {
128-
capability.filesSharingSearchMinLength = respFilesSharing.getInt(
129-
PROPERTY_SEARCH_MIN_LENGTH
130-
)
131-
}
132127

133128
if (respFilesSharing.has(NODE_PUBLIC)) {
134129
val respPublic = respFilesSharing.getJSONObject(NODE_PUBLIC)
@@ -315,7 +310,6 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() {
315310
private const val PROPERTY_ENFORCED_READ_WRITE = "read_write"
316311
private const val PROPERTY_ENFORCED_UPLOAD_ONLY = "upload_only"
317312
private const val PROPERTY_DAYS = "days"
318-
private const val PROPERTY_SEARCH_MIN_LENGTH = "search_min_length"
319313
private const val PROPERTY_SEND_MAIL = "send_mail"
320314
private const val PROPERTY_UPLOAD = "upload"
321315
private const val PROPERTY_UPLOAD_ONLY = "supports_upload_only"

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/RemoteCapability.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ data class RemoteCapability(
4444

4545
// Files Sharing
4646
var filesSharingApiEnabled: CapabilityBooleanType = CapabilityBooleanType.UNKNOWN,
47-
var filesSharingSearchMinLength: Int? = DEFAULT_MIN_CHARACTERS_TO_SEARCH,
4847
var filesSharingPublicEnabled: CapabilityBooleanType = CapabilityBooleanType.UNKNOWN,
4948
var filesSharingPublicPasswordEnforced: CapabilityBooleanType = CapabilityBooleanType.UNKNOWN,
5049
var filesSharingPublicPasswordEnforcedReadOnly: CapabilityBooleanType = CapabilityBooleanType.UNKNOWN,
@@ -97,8 +96,4 @@ data class RemoteCapability(
9796
}
9897
}
9998
}
100-
101-
companion object {
102-
private const val DEFAULT_MIN_CHARACTERS_TO_SEARCH = 2
103-
}
10499
}

0 commit comments

Comments
 (0)