fix(nochatreports): remove extra $ from key

This commit is contained in:
Ryan 2025-03-10 21:22:01 -04:00
parent 029a80456d
commit dda43999fe
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -4,7 +4,7 @@ macro_rules! crypt {
macro_rules! crypt_with { macro_rules! crypt_with {
($algo:ident) => {{ ($algo:ident) => {{
let encoding = $options.get("encoding").unwrap_or_default(); let encoding = $options.get("encoding").unwrap_or_default();
let key = &$options.get::<UserDataRef<AesKey>>("$key")?.inner; let key = &$options.get::<UserDataRef<AesKey>>("key")?.inner;
match encoding { match encoding {
1 => $algo::<Base64Encoding>::$op($text, &key), 1 => $algo::<Base64Encoding>::$op($text, &key),
2 => $algo::<Base64rEncoding>::$op($text, &key), 2 => $algo::<Base64rEncoding>::$op($text, &key),