You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	All: Schedule sync after enabling or disabling encryption
This commit is contained in:
		| @@ -277,6 +277,10 @@ class BaseApplication { | ||||
| 					type: 'MASTERKEY_REMOVE_NOT_LOADED', | ||||
| 					ids: loadedMasterKeyIds, | ||||
| 				}); | ||||
|  | ||||
| 				// Schedule a sync operation so that items that need to be encrypted | ||||
| 				// are sent to sync target. | ||||
| 				reg.scheduleSync(); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -109,7 +109,7 @@ class Tag extends BaseItem { | ||||
| 		for (let i = 0; i < tagTitles.length; i++) { | ||||
| 			const title = tagTitles[i].trim().toLowerCase(); | ||||
| 			if (!title) continue; | ||||
| 			let tag = await this.loadByField('title', title); | ||||
| 			let tag = await this.loadByField('title', title, { caseInsensitive: true }); | ||||
| 			if (!tag) tag = await Tag.save({ title: title }, { userSideValidation: true }); | ||||
| 			await this.addNote(tag.id, noteId); | ||||
| 			addedTitles.push(title); | ||||
|   | ||||
| @@ -97,6 +97,10 @@ const generalMiddleware = store => next => async (action) => { | ||||
| 			type: 'MASTERKEY_REMOVE_NOT_LOADED', | ||||
| 			ids: loadedMasterKeyIds, | ||||
| 		}); | ||||
|  | ||||
| 		// Schedule a sync operation so that items that need to be encrypted | ||||
| 		// are sent to sync target. | ||||
| 		reg.scheduleSync(); | ||||
| 	} | ||||
|  | ||||
| 	if (action.type == 'NAV_GO' && action.routeName == 'Notes') { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user