Change button tooltip

This commit is contained in:
Jiiks 2018-08-14 13:03:47 +03:00
parent 9aa9305755
commit 36408d74ad
2 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ export default new class E2EE extends BuiltinModule {
}
}
// TODO Bug: If exchange is done fast enough it sometimes ask you to accept your own sent key
async handlePublicKey(component) {
if (!component.props.channel || component.props.channel.type !== 1) return;
if (component.props.message.author.id === DiscordApi.currentUser.id) return;

View File

@ -29,7 +29,7 @@
<div @click="toggleEncrypt" :class="{'bd-warn': !E2EE.encryptNewMessages, 'bd-ok': E2EE.encryptNewMessages}"><MiLock size="16" v-tooltip="'Toggle Encryption'" /></div>
<div v-close-popover @click="showUploadDialog" v-if="!error"><MiImagePlus size="16" v-tooltip="'Upload Encrypted Image'" /></div>
<!-- Using these icons for now -->
<div v-close-popover @click="generatePublicKey" v-if="DiscordApi.currentChannel.type === 'DM'"><MiPencil size="16" v-tooltip="'Generate Public Key'" /></div>
<div v-close-popover @click="generatePublicKey" v-if="DiscordApi.currentChannel.type === 'DM'"><MiPencil size="16" v-tooltip="'Begin Key Exchange'" /></div>
</template>
</v-popover>
<div class="bd-taDivider"></div>