Update HideMutedCategories.plugin.js
This commit is contained in:
parent
f73df71ca8
commit
319adece69
Plugins/HideMutedCategories
|
@ -90,10 +90,7 @@ var HideMutedCategories = (_ => {
|
|||
let renderSection = list.props.renderSection;
|
||||
list.props.renderSection = (...args) => {
|
||||
let section = renderSection(...args);
|
||||
if (section && section.props && section.props.channel && BDFDB.LibraryModules.MutedUtils.isChannelMuted(e.instance.props.guild.id, section.props.channel.id)) {
|
||||
console.log(section);
|
||||
return null;
|
||||
}
|
||||
if (section && section.props && section.props.channel && BDFDB.LibraryModules.MutedUtils.isChannelMuted(e.instance.props.guild.id, section.props.channel.id))return null;
|
||||
else return section;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue