From 778d79cd35cf4710640ac7563d6e22eb1deb78ca Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:09:04 -0300 Subject: [PATCH] Fix MutualGroupDMs and UserVoiceShow patch --- src/plugins/mutualGroupDMs/index.tsx | 2 +- src/plugins/userVoiceShow/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/mutualGroupDMs/index.tsx b/src/plugins/mutualGroupDMs/index.tsx index f5e4b61..1753fef 100644 --- a/src/plugins/mutualGroupDMs/index.tsx +++ b/src/plugins/mutualGroupDMs/index.tsx @@ -45,7 +45,7 @@ export default definePlugin({ patches: [ { - find: ".Messages.USER_PROFILE_MODAL", // Note: the module is lazy-loaded + find: ".Messages.MUTUAL_GUILDS_WITH_END_COUNT", // Note: the module is lazy-loaded replacement: { match: /(?<=\.tabBarItem.{0,50}MUTUAL_GUILDS.+?}\),)(?=.+?(\(0,\i\.jsxs?\)\(.{0,100}id:))/, replace: '(arguments[0].user.bot||arguments[0].isCurrentUser)?null:$1"MUTUAL_GDMS",children:"Mutual Groups"}),' diff --git a/src/plugins/userVoiceShow/index.tsx b/src/plugins/userVoiceShow/index.tsx index 200cfe8..feba283 100644 --- a/src/plugins/userVoiceShow/index.tsx +++ b/src/plugins/userVoiceShow/index.tsx @@ -104,7 +104,7 @@ export default definePlugin({ }, // below username { - find: ".USER_PROFILE_MODAL", + find: ".Messages.MUTUAL_GUILDS_WITH_END_COUNT", // Lazy-loaded replacement: { match: /\.body.+?displayProfile:\i}\),/, replace: "$&$self.patchModal(arguments[0]),",