From 6f9cdb9dda3134b4d7a243966d591bbab53255ab Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 14 Aug 2018 12:59:37 +0300 Subject: [PATCH] That obviously wouldn't work --- client/src/builtin/E2EE.js | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/builtin/E2EE.js b/client/src/builtin/E2EE.js index 8c57c8dd..c2a9930b 100644 --- a/client/src/builtin/E2EE.js +++ b/client/src/builtin/E2EE.js @@ -139,7 +139,6 @@ export default new class E2EE extends BuiltinModule { // We already sent our key if (!ECDH_STORAGE.hasOwnProperty(channelId)) { const publicKeyMessage = `\`\`\`\n-----BEGIN PUBLIC KEY-----\n${this.createKeyExchange(channelId)}\n-----END PUBLIC KEY-----\n\`\`\``; - this.preExchangeState = this.encryptNewMessages; if (this.encryptNewMessages) this.encryptNewMessages = false; WebpackModules.getModuleByName('DraftActions').saveDraft(channelId, publicKeyMessage); }