aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHugo C <lumap@duck.com>2023-08-02 02:27:10 +0200
committerGitHub <noreply@github.com>2023-08-02 00:27:10 +0000
commit645749b5ae59ccd9d536fa52b4eecdbc57af2a7d (patch)
tree3b32854da74699a77c13d214594a690e4f9ccabe /src
parent2e002107a6739c025ee6f916acaa76a3f3373bbc (diff)
downloadVencord-645749b5ae59ccd9d536fa52b4eecdbc57af2a7d.tar.gz
Vencord-645749b5ae59ccd9d536fa52b4eecdbc57af2a7d.tar.bz2
Vencord-645749b5ae59ccd9d536fa52b4eecdbc57af2a7d.zip
VoiceMessages: Improve permission check (#1544)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/voiceMessages/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/voiceMessages/index.tsx b/src/plugins/voiceMessages/index.tsx
index b5b9c73..40578a6 100644
--- a/src/plugins/voiceMessages/index.tsx
+++ b/src/plugins/voiceMessages/index.tsx
@@ -220,7 +220,7 @@ function Modal({ modalProps }: { modalProps: ModalProps; }) {
}
const ctxMenuPatch: NavContextMenuPatchCallback = (children, props) => () => {
- if (props.channel.guild_id && !PermissionStore.can(PermissionsBits.SEND_VOICE_MESSAGES, props.channel)) return;
+ if (props.channel.guild_id && !(PermissionStore.can(PermissionsBits.SEND_VOICE_MESSAGES, props.channel) && PermissionStore.can(PermissionsBits.SEND_MESSAGES, props.channel))) return;
children.push(
<Menu.MenuItem