mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix(client): read-only handling of recent notes
This commit is contained in:
		@@ -159,6 +159,9 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    saveToRecentNotes(resolvedNotePath: string) {
 | 
					    saveToRecentNotes(resolvedNotePath: string) {
 | 
				
			||||||
 | 
					        if (options.is("databaseReadonly")) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        setTimeout(async () => {
 | 
					        setTimeout(async () => {
 | 
				
			||||||
            // we include the note in the recent list only if the user stayed on the note at least 5 seconds
 | 
					            // we include the note in the recent list only if the user stayed on the note at least 5 seconds
 | 
				
			||||||
            if (resolvedNotePath && resolvedNotePath === this.notePath) {
 | 
					            if (resolvedNotePath && resolvedNotePath === this.notePath) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user