Disable encryption for new exchanges
This commit is contained in:
parent
54e5f2149b
commit
7636ea480d
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue