-
Notifications
You must be signed in to change notification settings - Fork 133
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
fix/shared notes #1320
fix/shared notes #1320
Conversation
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.
Code change looks ok. Except the linting issue at https://github.com/nextcloud/notes/pull/1320/files#diff-7f7d9bb77038513c05d8a832f52c8b4ef5a00af9373c6b2fdaaf24b5b7d907d3R33
aabf14b
to
820a315
Compare
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
…set manually Signed-off-by: Julius Härtl <[email protected]>
820a315
to
d8e6271
Compare
/backport to stable4.10 |
@juliushaertl It's working, but I need a small workaround and I'm not sure, if this expected. If I share my folder from my main account to my android account, the shared folder is also named |
The current backend logic to get or create a notes folder is not ideal as we cannot easily determine if a folder exists because a user has created and set is as notes folder before or if it was manually picked as a notes folder.
To avoid issues with the wrong incoming shared folder being taken as notes folder automatically this PR refactors the logic so that we now no longer store the notes folder in the config with the default value, until it was actually created. That way we know as soon as the config value is set, we no longer need to check for incoming shares on the folder.
Fix #1266