fixes usage of an undefined var
and removes a unnecessary code block as there is no paging for share recommendations Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
ccd8da66f2
commit
44dca54895
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -622,23 +622,8 @@
|
|||
}
|
||||
previousUuid = grouped[i].uuid;
|
||||
}
|
||||
var moreResultsAvailable =
|
||||
(
|
||||
OC.config['sharing.maxAutocompleteResults'] > 0
|
||||
&& Math.min(perPage, OC.config['sharing.maxAutocompleteResults'])
|
||||
<= Math.max(
|
||||
users.length + exactUsers.length,
|
||||
groups.length + exactGroups.length,
|
||||
remoteGroups.length + exactRemoteGroups.length,
|
||||
remotes.length + exactRemotes.length,
|
||||
emails.length + exactEmails.length,
|
||||
circles.length + exactCircles.length,
|
||||
rooms.length + exactRooms.length,
|
||||
lookup.length
|
||||
)
|
||||
);
|
||||
|
||||
deferred.resolve(result, exactMatches, moreResultsAvailable);
|
||||
deferred.resolve(result, exactMatches, false);
|
||||
} else {
|
||||
deferred.reject(result.ocs.meta.message);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue