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 },