Fix MemberCount

This commit is contained in:
Vendicated 2023-10-25 23:06:30 +02:00
parent ddee3e1264
commit a41abfef31
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -105,10 +105,10 @@ export default definePlugin({
authors: [Devs.Ven, Devs.Commandtechno],
patches: [{
find: ".isSidebarVisible,",
find: "{isSidebarVisible:",
replacement: {
match: /(var (\i)=\i\.className.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/,
replace: "$1:[$2?.startsWith('members')?$self.render():null,$3"
match: /(?<=let\{className:(\i),.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/,
replace: ":[$1?.startsWith('members')?$self.render():null,$2"
}
}],