From 8a58b9d459b15051af4726532d5669011c033662 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 9 Jul 2025 11:15:49 +0200 Subject: [PATCH] :sparkles: Use new write-bool helper on fills metadata --- common/src/app/common/types/fills/impl.cljc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/app/common/types/fills/impl.cljc b/common/src/app/common/types/fills/impl.cljc index 55b86f4745..68c21c30dd 100644 --- a/common/src/app/common/types/fills/impl.cljc +++ b/common/src/app/common/types/fills/impl.cljc @@ -130,21 +130,21 @@ (when mtype (let [val (case mtype - "image/jpeg" 0x01 - "image/png" 0x02 - "image/gif" 0x03 - "image/webp" 0x04 + "image/jpeg" 0x01 + "image/png" 0x02 + "image/gif" 0x03 + "image/webp" 0x04 "image/svg+xml" 0x05)] (buf/write-short buffer (+ offset 2) val))) (if (and (some? ref-file) (some? ref-id)) (do - (buf/write-byte buffer (+ offset 0) 0x01) + (buf/write-bool buffer (+ offset 0) true) (buf/write-uuid buffer (+ offset 4) ref-file) (buf/write-uuid buffer (+ offset 20) ref-id)) (do - (buf/write-byte buffer (+ offset 0) 0x00))))) + (buf/write-bool buffer (+ offset 0) false))))) (defn- read-stop [buffer offset]