From 9247481daeda3fc52326a75c3c39aa5f8f21eb2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Sat, 13 Jan 2024 02:19:41 +0100 Subject: [PATCH] Oops --- src/api/core/ciphers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 7eebc615..3c1ae0a0 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -987,7 +987,7 @@ async fn post_attachment_v2( } let data: AttachmentRequestData = data.into_inner().data; - if !data.FileSize < 0 { + if data.FileSize < 0 { err!("Attachment size can't be negative") } let attachment_id = crypto::generate_attachment_id();