-
Notifications
You must be signed in to change notification settings - Fork 94
BugFix - Do not Filter Share Type #1741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: alperozturk <[email protected]>
11b3961
to
7c591c3
Compare
Signed-off-by: tobiasKaminsky <[email protected]>
} else { | ||
null | ||
} | ||
return ShareeUser(userId, displayName, shareType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes what this function returns in some cases. For example, if a public link share was parsed, null
was previously returned, now ShareeUser("", "", PUBLIC_LINK)
is returned. I'm not sure if or what implications this change has.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is intentional. Previously, the corresponding remote file lacked a shareType due to a missing username. Now, even if the username is absent, we can still determine the shareType, allowing it to be displayed in the UI.
A missing username should not cause issues (crash etc), as external share links do not include one, and the username should not be mandatory. We might consider renaming the data class and adding documentation in a separate PR.
See, there is no username for this share.
Client PR: nextcloud/android#14989