diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index c9ab87d4f..ed4ec4d2c 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -28,7 +28,6 @@ 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; @@ -1068,7 +1067,6 @@ export default definePlugin({ settings, UserStore, - SelectedGuildStore, patches: [ { @@ -1108,7 +1106,7 @@ export default definePlugin({ find: "location:\"DiscordTag\"});", replacement: { match: /(?<=let{user:(\i).{0,800},{(?:primary|name):)(\i)/g, - replace: "!$self.SelectedGuildStore.getGuildId()?$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$1,type:\"membersList\"}):$2" + replace: "window.location.pathname===\"/channels/@me\"?$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$1,type:\"membersList\"}):$2" }, }, {