ViewIcon: Replace regex find with string find

This commit is contained in:
Nuckyz 2024-05-16 02:37:24 -03:00
parent cddc811c02
commit c5e554e48c
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -221,7 +221,7 @@ export default definePlugin({
},
// User DMs top small icon
{
find: /HiddenVisually,{children:\i\.\i\.Messages\.DIRECT_MESSAGE/,
find: ".cursorPointer:null,children",
replacement: {
match: /.Avatar,.+?src:(.+?\))(?=[,}])/,
replace: (m, avatarUrl) => `${m},onClick:()=>$self.openImage(${avatarUrl})`