From 7636ea480dec7d55075030e303a52050612bfd91 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 14 Aug 2018 11:06:02 +0300 Subject: [PATCH] Disable encryption for new exchanges --- client/src/builtin/E2EEComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/builtin/E2EEComponent.vue b/client/src/builtin/E2EEComponent.vue index fdd60482..af5d1636 100644 --- a/client/src/builtin/E2EEComponent.vue +++ b/client/src/builtin/E2EEComponent.vue @@ -92,7 +92,7 @@ Toasts.warning('Key exchange for channel already in progress!'); return; } - + E2EE.encryptNewMessages = false; // Disable encrypting new messages so we won't encrypt public keys const publicKeyMessage = `\`\`\`\n-----BEGIN PUBLIC KEY-----\n${keyExchange}\n-----END PUBLIC KEY-----\n\`\`\``; WebpackModules.getModuleByName('DraftActions').saveDraft(DiscordApi.currentChannel.id, publicKeyMessage); Toasts.info('Key exhange started. Expires in 30 seconds');