From e6d3cbf3eb26f9ce82b20b3df09aa3615bb3be5f Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:21:53 -0500 Subject: [PATCH] VoiceMessages: Fix CTX Icon --- src/plugins/voiceMessages/index.tsx | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/plugins/voiceMessages/index.tsx b/src/plugins/voiceMessages/index.tsx index 1f5249127..2afa4e5c4 100644 --- a/src/plugins/voiceMessages/index.tsx +++ b/src/plugins/voiceMessages/index.tsx @@ -151,23 +151,18 @@ function useObjectUrl() { } const ctxMenuPatch: NavContextMenuPatchCallback = (children, props) => { - const hasPermission = !props.channel.guild_id - || (PermissionStore.can(PermissionsBits.SEND_VOICE_MESSAGES, props.channel) && PermissionStore.can(PermissionsBits.SEND_MESSAGES, props.channel)); + if (props.channel.guild_id && !(PermissionStore.can(PermissionsBits.SEND_VOICE_MESSAGES, props.channel) && PermissionStore.can(PermissionsBits.SEND_MESSAGES, props.channel))) return; children.push( - -
- Send Voice Message - {!hasPermission && (Missing Permissions)} -
- - } + iconLeft={Microphone} + leadingAccessory={{ + type: "icon", + icon: Microphone + }} + label="Send Voice Message" action={() => openModal(modalProps => )} - disabled={!hasPermission} /> ); };