From 87f457a97c035e40eeec05b4a7e66074295d74c1 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 1 Aug 2025 14:02:05 -0400 Subject: [PATCH] MentionAvatars: Fix --- src/plugins/mentionAvatars/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/mentionAvatars/index.tsx b/src/plugins/mentionAvatars/index.tsx index 1d590f13c..91ffe4da8 100644 --- a/src/plugins/mentionAvatars/index.tsx +++ b/src/plugins/mentionAvatars/index.tsx @@ -52,7 +52,7 @@ export default definePlugin({ find: ".USER_MENTION)", replacement: { match: /"@"\.concat\((null!=\i\?\i:\i)\)(?<=\.useName\((\i)\).+?)/, - replace: "$self.renderUsername({username:$1,user:$2,showMeYourNameMention:showMeYourNameMention ?? undefined})" + replace: "$self.renderUsername({username:$1,user:$2,showMeYourNameMention:typeof showMeYourNameMention!=='undefined'?showMeYourNameMention:undefined})" } }, {