mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	decrypt note title in the recent changes if in secure session, otherwise omit the change altogether
This commit is contained in:
		
							parent
							
								
									50b61d30f0
								
							
						
					
					
						commit
						5d531216d9
					
				| @ -12,6 +12,15 @@ $(document).bind('keydown', 'alt+r', function() { | |||||||
|             const groupedByDate = {}; |             const groupedByDate = {}; | ||||||
| 
 | 
 | ||||||
|             for (const row of result) { |             for (const row of result) { | ||||||
|  |                 if (row.encryption > 0) { | ||||||
|  |                     if (!isEncryptionAvailable()) { | ||||||
|  |                         // we don't display encrypted note activity if we're not in the secure session
 | ||||||
|  |                         continue; | ||||||
|  |                     } | ||||||
|  | 
 | ||||||
|  |                     row.note_title = decryptString(row.note_title); | ||||||
|  |                 } | ||||||
|  | 
 | ||||||
|                 const dateModified = new Date(row.date_modified * 1000); |                 const dateModified = new Date(row.date_modified * 1000); | ||||||
|                 const formattedDate = formatDate(dateModified); |                 const formattedDate = formatDate(dateModified); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner