aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/invisibleChat/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/invisibleChat/index.tsx')
-rw-r--r--src/plugins/invisibleChat/index.tsx4
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;
}