mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	fix extra refresh because of duplicated sync event, closes #1063
This commit is contained in:
		
							parent
							
								
									5e353a5612
								
							
						
					
					
						commit
						75bd395669
					
				| @ -165,6 +165,10 @@ async function consumeSyncData() { | ||||
|             utils.reloadApp(); | ||||
|         } | ||||
| 
 | ||||
|         for (const syncRow of nonProcessedSyncRows) { | ||||
|             processedSyncIds.add(syncRow.id); | ||||
|         } | ||||
| 
 | ||||
|         lastProcessedSyncId = Math.max(lastProcessedSyncId, allSyncRows[allSyncRows.length - 1].id); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -662,8 +662,10 @@ async function scanForLinks(note) { | ||||
|         const content = await note.getContent(); | ||||
|         const newContent = await saveLinks(note, content); | ||||
| 
 | ||||
|         if (content !== newContent) { | ||||
|             await note.setContent(newContent); | ||||
|         } | ||||
|     } | ||||
|     catch (e) { | ||||
|         log.error(`Could not scan for links note ${note.noteId}: ${e.message} ${e.stack}`); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam