No need to use this when it's already in the scope

This commit is contained in:
Jiiks 2018-08-12 15:47:20 +03:00
parent 5f76d304f6
commit 3614997fa9
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@
Uploader.upload(DiscordApi.currentChannel.id, FileActions.makeFile(new Uint8Array([...new Uint8Array(arrBuffer), ...encodedBytes]), 'bde2ee.png'));
},
toggleEncrypt() {
const newState = !this.E2EE.encryptNewMessages;
this.E2EE.encryptNewMessages = newState;
const newState = !E2EE.encryptNewMessages;
E2EE.encryptNewMessages = newState;
if (!newState) {
Toasts.warning('New messages will not be encrypted');
return;