From 353a6994815fb8c93c8507c92e1d14a4775280c0 Mon Sep 17 00:00:00 2001 From: u32 Date: Fri, 9 Jan 2026 22:11:34 +0000 Subject: [PATCH] UserVoiceShow: fix showing in wrong location (#3884) Co-authored-by: V --- src/plugins/userVoiceShow/components.tsx | 11 ++++++----- src/plugins/userVoiceShow/index.tsx | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/plugins/userVoiceShow/components.tsx b/src/plugins/userVoiceShow/components.tsx index e126fcf3..34201445 100644 --- a/src/plugins/userVoiceShow/components.tsx +++ b/src/plugins/userVoiceShow/components.tsx @@ -25,14 +25,12 @@ const ActionButtonClasses = findByPropsLazy("actionButton", "highlight"); type IconProps = Omit, "children"> & { size?: number; - iconClassName?: string; }; function Icon(props: PropsWithChildren) { const { size = 16, className, - iconClassName, ...restProps } = props; @@ -42,7 +40,6 @@ function Icon(props: PropsWithChildren) { className={classes(cl("speaker"), className)} > )} diff --git a/src/plugins/userVoiceShow/index.tsx b/src/plugins/userVoiceShow/index.tsx index bc1ce30b..04b9aa11 100644 --- a/src/plugins/userVoiceShow/index.tsx +++ b/src/plugins/userVoiceShow/index.tsx @@ -57,10 +57,10 @@ export default definePlugin({ patches: [ // User Popout, User Profile Modal, Direct Messages Side Profile { - find: "#{intl::USER_PROFILE_LOAD_ERROR}", + find: "#{intl::USER_PROFILE_PRONOUNS}", replacement: { - match: /(\.fetchError.+?\?)null/, - replace: (_, rest) => `${rest}$self.VoiceChannelIndicator({userId:arguments[0]?.userId,isProfile:true})` + match: /(\i).isVerifiedBot\(\)}\),/, + replace: "$&$self.VoiceChannelIndicator({userId:$1.id,isProfile:true})," }, predicate: () => settings.store.showInUserProfileModal },