Skip to content
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

Merged
merged 3 commits into from
Jul 15, 2024
Merged

fix/shared notes #1320

merged 3 commits into from
Jul 15, 2024

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jul 11, 2024

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

@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Jul 11, 2024
@juliusknorr juliusknorr marked this pull request as ready for review July 11, 2024 14:41
Copy link
Contributor

@luka-nextcloud luka-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luka-nextcloud luka-nextcloud merged commit 0c29eaa into main Jul 15, 2024
9 checks passed
@luka-nextcloud luka-nextcloud deleted the fix/shared-notes branch July 15, 2024 13:36
@juliusknorr
Copy link
Member Author

/backport to stable4.10

@SimeonEhrig
Copy link

@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 Notes in the android account. In this case, the note app tries to create a new folder ( Notes (2)). If I rename the shared folder in the android account to Notes_Simeon (the main account is not affected) and select it as notes folder in the notes app settings, everything is working. So, is this expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use shared folder for notes anymore.
3 participants