You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-24 20:19:10 +02:00
Desktop,Mobile,Cli: Fixes #12648: Fix unshare action requires two syncs to be reflected locally (#12999)
This commit is contained in:
@@ -445,6 +445,16 @@ export default class Synchronizer {
|
||||
logger.error('Error indexing resources:', error);
|
||||
}
|
||||
|
||||
// Before syncing, we run the share service maintenance, which is going
|
||||
// to fetch share invitations and clear share_ids for unshared items, if any.
|
||||
if (this.shareService_) {
|
||||
try {
|
||||
await this.shareService_.maintenance();
|
||||
} catch (error) {
|
||||
logger.error('Could not run share service maintenance:', error);
|
||||
}
|
||||
}
|
||||
|
||||
// Before synchronising make sure all share_id properties are set
|
||||
// correctly so as to share/unshare the right items.
|
||||
try {
|
||||
@@ -1158,16 +1168,6 @@ export default class Synchronizer {
|
||||
this.cancelling_ = false;
|
||||
}
|
||||
|
||||
// After syncing, we run the share service maintenance, which is going
|
||||
// to fetch share invitations, if any.
|
||||
if (this.shareService_) {
|
||||
try {
|
||||
await this.shareService_.maintenance();
|
||||
} catch (error) {
|
||||
logger.error('Could not run share service maintenance:', error);
|
||||
}
|
||||
}
|
||||
|
||||
this.progressReport_.completedTime = time.unixMs();
|
||||
|
||||
this.logSyncOperation('finished', null, null, `Synchronisation finished [${synchronizationId}]`);
|
||||
|
Reference in New Issue
Block a user