From 50955941e42844b64d61d3248d6e2de9f079c8fb Mon Sep 17 00:00:00 2001 From: PhilReact Date: Sat, 14 Dec 2024 23:24:34 +0200 Subject: [PATCH] fix reaction- decryption --- src/qdn/encryption/group-encryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qdn/encryption/group-encryption.ts b/src/qdn/encryption/group-encryption.ts index eb83e1e..632252b 100644 --- a/src/qdn/encryption/group-encryption.ts +++ b/src/qdn/encryption/group-encryption.ts @@ -263,7 +263,7 @@ export const decryptSingle = async ({ data64, secretKeyObject, skipDecodeBase64 } else { if (hasTypeNumber) { // const typeNumberStr = new TextDecoder().decode(typeNumberBytes); - if(decodeForNumber.slice(10, 13) === '002'){ + if(decodeForNumber.slice(10, 13) !== '001'){ const decodedBinary = base64ToUint8Array(decodedData); const highestKeyBytes = decodedBinary.slice(0, 10); // if ASCII digits only const highestKeyStr = new TextDecoder().decode(highestKeyBytes);