1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +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

@@ -95,7 +95,7 @@ describe('ShareService', () => {
await service.shareNote(note.id, false);
await msleep(1);
await Folder.updateAllShareIds(resourceService());
await Folder.updateAllShareIds(resourceService(), []);
await synchronizerStart();
@@ -187,7 +187,7 @@ describe('ShareService', () => {
await shareService.shareFolder(folder.id);
await Folder.updateAllShareIds(resourceService());
await Folder.updateAllShareIds(resourceService(), []);
// The share service should automatically create a new encryption key
// specifically for that shared folder
@@ -313,7 +313,7 @@ describe('ShareService', () => {
const resourceService = new ResourceService();
await Folder.save({ id: folder1.id, share_id: '123456789' });
await Folder.updateAllShareIds(resourceService);
await Folder.updateAllShareIds(resourceService, []);
const cleanup = simulateReadOnlyShareEnv('123456789');