diff --git a/src/plugins/viewIcons/index.tsx b/src/plugins/viewIcons/index.tsx index d7a74223b..3ffb346dd 100644 --- a/src/plugins/viewIcons/index.tsx +++ b/src/plugins/viewIcons/index.tsx @@ -197,7 +197,7 @@ export default definePlugin({ patches: [ // Avatar component used in User DMs "User Profile" popup in the right and User Profile Modal pfp { - find: "return{avatarProps:{", + find: ".AVATAR),{trackUserProfileAction:", replacement: { match: /(?<=avatarProps:(\i),eventHandlers:(\i).{0,50}?)return null==/, replace: 'Object.assign($2,{style:{cursor:"pointer"},onClick:()=>$self.openAvatar($1.src)});$&',