1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

All: Fixes #12089: Moving sub-notebook of shared notebook should unshare it (#12647)

This commit is contained in:
Laurent Cozic
2025-07-02 20:14:47 +03:00
committed by GitHub
parent 75b89c7e09
commit bbba19eb40
6 changed files with 132 additions and 31 deletions

View File

@@ -448,7 +448,7 @@ export default class Synchronizer {
// Before synchronising make sure all share_id properties are set
// correctly so as to share/unshare the right items.
try {
await Folder.updateAllShareIds(this.resourceService());
await Folder.updateAllShareIds(this.resourceService(), this.shareService_ ? this.shareService_.shares : []);
if (this.shareService_) await this.shareService_.checkShareConsistency();
} catch (error) {
if (error && error.code === ErrorCode.IsReadOnly) {