MutualGroupDMs: Fix broken patch (#3634)

This commit is contained in:
thororen 2025-08-29 15:01:27 -04:00 committed by GitHub
parent c5888c25f7
commit 67aff64fed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,14 +109,14 @@ export default definePlugin({
},
// User Profile Modal v2
{
find: ".tabBarPanel,children:",
find: ".tabBarPanel,{[",
replacement: [
{
match: /items:(\i),.+?(?=return\(0,\i\.jsxs?\)\("div)/,
replace: "$&$self.pushSection($1,arguments[0].user);"
},
{
match: /\.tabBarPanel,children:(?=.+?section:(\i))/,
match: /\.tabBarPanel,.+?children:(?=.+?section:(\i))/,
replace: "$&$1==='MUTUAL_GDMS'?$self.renderMutualGDMs(arguments[0]):"
},
// Make the gap between each item smaller so our tab can fit.