ViewIcons: Fix Find

This commit is contained in:
thororen1234 2026-04-16 12:01:58 -04:00
parent b0068dafac
commit 88b718f1e1
No known key found for this signature in database

View file

@ -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)});$&',