fix(main): create only one note when moving to another account - #3315
fix(main): create only one note when moving to another account#3315RapidAppCoder wants to merge 1 commit into
Conversation
switchMap re-ran the move on every Room invalidation, so the target account received identical copies of the same note. Assisted-by: Cursor:Grok 4.6 Signed-off-by: Michael Hutter <nextcloud-notes-android@michaelhutter.de>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 5 minor |
🟢 Metrics 0 complexity · 0 duplication
Metric Results Complexity 0 Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
I switched from an old Nextcloud installation to a new one.
On my phone I added both Nextcloud instances and tried to move Notes
from the old instance to the new one.
The "Move" function ("Verschieben") did the following:
I moved different notes. Sometimes it created the note 3 times, in other
cases about 20 times.
I used AI to help fix this bug. I built a debug version of the Notes app
and tested it. Moving a note now creates only one copy on the target
account.
The move ran again every time the local database updated the note, so
the app kept creating extra copies.
🖼️ Screenshots
not needed (behaviour bug)
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)