SMYN: Actual fix this time. (#803)

This commit is contained in:
Etorix 2026-02-18 13:44:36 -08:00 • committed by GitHub
parent 4d7882396e
commit 0cdcb24060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,6 @@ const UserStore = findStoreLazy("UserStore");
const wrapEmojis = findByCodeLazy("lastIndex;return"); const wrapEmojis = findByCodeLazy("lastIndex;return");
const adjustColor = findByCodeLazy("light1", "dark1", "toonStroke"); const adjustColor = findByCodeLazy("light1", "dark1", "toonStroke");
const AccessibilityStore = findStoreLazy("AccessibilityStore"); const AccessibilityStore = findStoreLazy("AccessibilityStore");
const SelectedGuildStore = findStoreLazy("SelectedGuildStore");
const roleColorPattern = /^role((?:\+|-)\d{0,4})?$/iu; const roleColorPattern = /^role((?:\+|-)\d{0,4})?$/iu;
const symbolPattern = /^[\p{S}\p{P}]{1,3}$/iu; const symbolPattern = /^[\p{S}\p{P}]{1,3}$/iu;
@ -1068,7 +1067,6 @@ export default definePlugin({
settings, settings,
UserStore, UserStore,
SelectedGuildStore,
patches: [ patches: [
{ {
@ -1108,7 +1106,7 @@ export default definePlugin({
find: "location:\"DiscordTag\"});", find: "location:\"DiscordTag\"});",
replacement: { replacement: {
match: /(?<=let{user:(\i).{0,800},{(?:primary|name):)(\i)/g, 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"
}, },
}, },
{ {