diff --git a/src/plugins/resurrectHome/index.tsx b/src/plugins/resurrectHome/index.tsx index f48debc7..24cdf2b0 100644 --- a/src/plugins/resurrectHome/index.tsx +++ b/src/plugins/resurrectHome/index.tsx @@ -89,8 +89,8 @@ export default definePlugin({ { find: "61eef9_2", replacement: { - match: /(?<=getMutableGuildChannelsForGuild\(\i\)\);)(?=if\(null==\i\|\|)/, - replace: "if($self.useForceServerHome())return false;" + match: /getMutableGuildChannelsForGuild\(\i\);return\(0,\i\.useStateFromStores\).+?\]\)(?=}function)/, + replace: m => `${m}&&!$self.useForceServerHome()` } } ],