This commit is contained in:
zadam
2023-09-23 00:04:32 +02:00
parent 602a166e36
commit 602b9ae64a
16 changed files with 1183 additions and 311 deletions

View File

@@ -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;