You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: owncloudApp/src/main/java/com/owncloud/android/presentation/providers/sharing/UsersAndGroupsSearchProvider.kt
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -177,10 +177,11 @@ class UsersAndGroupsSearchProvider : ContentProvider() {
177
177
val federatedShareAllowed = capabilities?.filesSharingFederationOutgoing?.isTrue ?:false
178
178
179
179
try {
180
+
val userName =AccountUtils.getUsernameOfAccount(account.name)
180
181
while (namesIt.hasNext()) {
181
182
item = namesIt.next()
182
-
if (item.label ==AccountUtils.getUsernameOfAccount(account.name)&& item.shareType ==ShareType.USER) {
183
-
item = namesIt.next()
183
+
if (item.label ==userName && item.shareType ==ShareType.USER) {
0 commit comments