Decor: Fix on current user area

This commit is contained in:
Nuckyz 2024-08-14 19:34:59 -03:00
parent 4301ed889d
commit d388aa4347
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -91,7 +91,7 @@ export default definePlugin({
replacement: [
// Use Decor avatar decoration hook
{
match: /(?<=\i\)\({avatarDecoration:)(\i).avatarDecoration(?=,)/,
match: /(?<=\i\)\({avatarDecoration:)(\i)(?=,)(?<=currentUser:(\i).+?)/,
replace: "$self.useUserDecorAvatarDecoration($1)??$&"
}
]