Merge pull request #227 from JsSucks/security-keyexchange

Fix key exchange
This commit is contained in:
Alexei Stukov 2018-08-16 10:55:55 +03:00 committed by GitHub
commit dd81201a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ export default new class E2EE extends BuiltinModule {
try {
const newMaster = await Modals.input('Open Database', 'Master Password', true).promise;
this.setMaster(newMaster);
Events.on('discord:MESSAGE_CREATE', this.handlePublicKey);
this.patchDispatcher();
this.patchMessageContent();
const selector = `.${WebpackModules.getClassName('channelTextArea', 'emojiButton')}`;