fix(files_sharing): List of share type during recipient lookup

ShareType lists both names and ids so Object.entries return too much.

This was also making useless the following condition adding ShareType.Email

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/49644/head
Louis Chemineau 2024-12-04 13:37:48 +07:00
parent 3027bb51af
commit d11f3c4c23
No known key found for this signature in database
1 changed files with 11 additions and 1 deletions

@ -168,7 +168,17 @@ export default {
lookup = true
}
const shareType = Object.values(ShareType)
const shareType = [
ShareType.User,
ShareType.Group,
ShareType.Remote,
ShareType.RemoteGroup,
ShareType.Team,
ShareType.Room,
ShareType.Guest,
ShareType.Deck,
ShareType.ScienceMesh,
]
if (getCapabilities().files_sharing.public.enabled === true) {
shareType.push(ShareType.Email)