Disable encryption for new exchanges

This commit is contained in:
Jiiks 2018-08-14 11:06:02 +03:00
parent 54e5f2149b
commit 7636ea480d
1 changed files with 1 additions and 1 deletions

View File

@ -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');