VoiceMessages: Improve permission check (#1544)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
2e002107a6
commit
645749b5ae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue