This commit is contained in:
2025-10-22 22:12:28 +03:00
Unverified
parent 9a23747f4f
commit 6d188777bc
2 changed files with 8 additions and 13 deletions
-1
View File
@@ -54,7 +54,6 @@ async def lifespan(app: FastAPI):
yield yield
# Shutdown (if needed in the future) # Shutdown (if needed in the future)
# logger.info("Application shutdown")
# Инициализация FastAPI # Инициализация FastAPI
app = FastAPI(title="FromChat", lifespan=lifespan) app = FastAPI(title="FromChat", lifespan=lifespan)
+1 -5
View File
@@ -207,11 +207,7 @@ export function Message({ message, isAuthor, onContextMenu, onReactionClick, isD
}, [message.files, isDm, decryptedFiles]); }, [message.files, isDm, decryptedFiles]);
async function decryptFile(file: Attachment): Promise<string | null> { async function decryptFile(file: Attachment): Promise<string | null> {
if (!file.encrypted || !isDm || !user.authToken || !dmRecipientPublicKey || !dmEnvelope) { if (!file.encrypted || !isDm || !user.authToken || !dmRecipientPublicKey || !dmEnvelope) return null;
debugger;
console.warn("Conditions not met")
return null;
}
// Check if already decrypted // Check if already decrypted
if (decryptedFiles.has(file.path)) { if (decryptedFiles.has(file.path)) {