diff --git a/src/plugins/invisibleChat/components/DecryptionModal.tsx b/src/plugins/invisibleChat/components/DecryptionModal.tsx index a17239bc5..b4bf6eb93 100644 --- a/src/plugins/invisibleChat/components/DecryptionModal.tsx +++ b/src/plugins/invisibleChat/components/DecryptionModal.tsx @@ -28,7 +28,7 @@ import { Button, Forms, React, TextInput } from "@webpack/common"; import { decrypt } from "../index"; export function DecModal(props: any) { - const secret: string = props?.message?.content; + const encryptedMessage: string = props?.message?.content; const [password, setPassword] = React.useState("password"); return ( @@ -38,9 +38,9 @@ export function DecModal(props: any) { - Secret - - Password + Message with Encryption + + Password { - const toSend = decrypt(secret, password, true); + const toSend = decrypt(encryptedMessage, password, true); if (!toSend || !props?.message) return; // @ts-expect-error Vencord.Plugins.plugins.InvisibleChat.buildEmbed(props?.message, toSend); diff --git a/src/plugins/invisibleChat/index.tsx b/src/plugins/invisibleChat/index.tsx index 43b48f100..58fccb9ce 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; }