Fix MemberCount
This commit is contained in:
parent
ddee3e1264
commit
a41abfef31
@ -105,10 +105,10 @@ export default definePlugin({
|
|||||||
authors: [Devs.Ven, Devs.Commandtechno],
|
authors: [Devs.Ven, Devs.Commandtechno],
|
||||||
|
|
||||||
patches: [{
|
patches: [{
|
||||||
find: ".isSidebarVisible,",
|
find: "{isSidebarVisible:",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(var (\i)=\i\.className.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/,
|
match: /(?<=let\{className:(\i),.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/,
|
||||||
replace: "$1:[$2?.startsWith('members')?$self.render():null,$3"
|
replace: ":[$1?.startsWith('members')?$self.render():null,$2"
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user