aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/invisibleChat/components
diff options
context:
space:
mode:
authorlovenginx <144252537+lovenginx@users.noreply.github.com>2023-09-12 14:04:50 -0700
committerGitHub <noreply@github.com>2023-09-12 23:04:50 +0200
commitdd23f9802c6cd1c30256fe5916eaba742980691f (patch)
tree2e65b5e82665cfd4c2eaaf6d31f5d55a0cff7344 /src/plugins/invisibleChat/components
parentf23ddf4cae268f3e800935f0de890d41799c355f (diff)
downloadVencord-dd23f9802c6cd1c30256fe5916eaba742980691f.tar.gz
Vencord-dd23f9802c6cd1c30256fe5916eaba742980691f.tar.bz2
Vencord-dd23f9802c6cd1c30256fe5916eaba742980691f.zip
InvisibleChat: fixup decryption modal (#1720)
Diffstat (limited to 'src/plugins/invisibleChat/components')
-rw-r--r--src/plugins/invisibleChat/components/DecryptionModal.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/invisibleChat/components/DecryptionModal.tsx b/src/plugins/invisibleChat/components/DecryptionModal.tsx
index a17239b..b4bf6eb 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) {
</ModalHeader>
<ModalContent>
- <Forms.FormTitle tag="h5" style={{ marginTop: "10px" }}>Secret</Forms.FormTitle>
- <TextInput defaultValue={secret} disabled={true}></TextInput>
- <Forms.FormTitle tag="h5">Password</Forms.FormTitle>
+ <Forms.FormTitle tag="h5" style={{ marginTop: "10px" }}>Message with Encryption</Forms.FormTitle>
+ <TextInput defaultValue={encryptedMessage} disabled={true}></TextInput>
+ <Forms.FormTitle tag="h5" style={{ marginTop: "10px" }}>Password</Forms.FormTitle>
<TextInput
style={{ marginBottom: "20px" }}
onChange={setPassword}
@@ -51,7 +51,7 @@ export function DecModal(props: any) {
<Button
color={Button.Colors.GREEN}
onClick={() => {
- 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);