mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	API docs
This commit is contained in:
		| @@ -126,7 +126,12 @@ class BAttachment extends AbstractBeccaEntity { | ||||
|     } | ||||
|  | ||||
|     decrypt() { | ||||
|         if (this.isProtected && !this.isDecrypted && protectedSessionService.isProtectedSessionAvailable()) { | ||||
|         if (!this.isProtected || !this.attachmentId) { | ||||
|             this.isDecrypted = true; | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         if (!this.isDecrypted && protectedSessionService.isProtectedSessionAvailable()) { | ||||
|             try { | ||||
|                 this.title = protectedSessionService.decryptString(this.title); | ||||
|                 this.isDecrypted = true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user