From 4d7882396e2af767934d02c3f8c7d806481bf273 Mon Sep 17 00:00:00 2001 From: Etorix <92535668+EtorixDev@users.noreply.github.com> Date: Wed, 18 Feb 2026 13:28:52 -0800 Subject: [PATCH] SMYN: Fix regression. (#802) --- src/plugins/showMeYourName/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index 219594c5a..c9ab87d4f 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -28,6 +28,7 @@ const UserStore = findStoreLazy("UserStore"); const wrapEmojis = findByCodeLazy("lastIndex;return"); const adjustColor = findByCodeLazy("light1", "dark1", "toonStroke"); const AccessibilityStore = findStoreLazy("AccessibilityStore"); +const SelectedGuildStore = findStoreLazy("SelectedGuildStore"); const roleColorPattern = /^role((?:\+|-)\d{0,4})?$/iu; const symbolPattern = /^[\p{S}\p{P}]{1,3}$/iu; @@ -1067,6 +1068,7 @@ export default definePlugin({ settings, UserStore, + SelectedGuildStore, patches: [ { @@ -1105,8 +1107,8 @@ export default definePlugin({ // Replace names in the friends list. find: "location:\"DiscordTag\"});", replacement: { - match: /(?<=let{user:(\i).{0,800},{(?:primary|name):)\i/g, - replace: "$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$1,type:\"membersList\"})" + match: /(?<=let{user:(\i).{0,800},{(?:primary|name):)(\i)/g, + replace: "!$self.SelectedGuildStore.getGuildId()?$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$1,type:\"membersList\"}):$2" }, }, {