SMYN: Fix regression. (#802)

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

View file

@ -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"
},
},
{