(fix): thing
All checks were successful
CI / checks (push) Successful in 4m50s

This commit is contained in:
Alois 2026-07-06 15:58:33 +02:00
commit 40e942337f

View file

@ -142,7 +142,7 @@ export const crypto: MTPCrypto = {
decryptText: async (key, ciphertext) => {
const cipher = new bindings.WasmChaCha20Poly1305(key);
try {
const decoded = bytesFromString(ciphertext, "ciphertext");
const decoded = base64ToBytes(ciphertext);
const plaintext = cipher.decrypt(decoded, new Uint8Array(0));
return utf8Decode(plaintext);
} finally {