diff options
author | lovenginx <144252537+lovenginx@users.noreply.github.com> | 2023-09-12 14:04:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 23:04:50 +0200 |
commit | dd23f9802c6cd1c30256fe5916eaba742980691f (patch) | |
tree | 2e65b5e82665cfd4c2eaaf6d31f5d55a0cff7344 /src/plugins/invisibleChat/index.tsx | |
parent | f23ddf4cae268f3e800935f0de890d41799c355f (diff) | |
download | Vencord-dd23f9802c6cd1c30256fe5916eaba742980691f.tar.gz Vencord-dd23f9802c6cd1c30256fe5916eaba742980691f.tar.bz2 Vencord-dd23f9802c6cd1c30256fe5916eaba742980691f.zip |
InvisibleChat: fixup decryption modal (#1720)
Diffstat (limited to 'src/plugins/invisibleChat/index.tsx')
-rw-r--r-- | src/plugins/invisibleChat/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/invisibleChat/index.tsx b/src/plugins/invisibleChat/index.tsx index 43b48f1..58fccb9 100644 --- a/src/plugins/invisibleChat/index.tsx +++ b/src/plugins/invisibleChat/index.tsx @@ -225,8 +225,8 @@ export function encrypt(secret: string, password: string, cover: string): string return steggo.hide(secret + "\u200b", password, cover); } -export function decrypt(secret: string, password: string, removeIndicator: boolean): string { - const decrypted = steggo.reveal(secret, password); +export function decrypt(encrypted: string, password: string, removeIndicator: boolean): string { + const decrypted = steggo.reveal(encrypted, password); return removeIndicator ? decrypted.replace("\u200b", "") : decrypted; } |