mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Clean up
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user