That obviously wouldn't work

This commit is contained in:
Jiiks 2018-08-14 12:59:37 +03:00
parent 0aa370aeb9
commit 6f9cdb9dda
1 changed files with 0 additions and 1 deletions

View File

@ -139,7 +139,6 @@ export default new class E2EE extends BuiltinModule {
// We already sent our key // We already sent our key
if (!ECDH_STORAGE.hasOwnProperty(channelId)) { if (!ECDH_STORAGE.hasOwnProperty(channelId)) {
const publicKeyMessage = `\`\`\`\n-----BEGIN PUBLIC KEY-----\n${this.createKeyExchange(channelId)}\n-----END PUBLIC KEY-----\n\`\`\``; 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; if (this.encryptNewMessages) this.encryptNewMessages = false;
WebpackModules.getModuleByName('DraftActions').saveDraft(channelId, publicKeyMessage); WebpackModules.getModuleByName('DraftActions').saveDraft(channelId, publicKeyMessage);
} }