Update HideMutedCategories.plugin.js

This commit is contained in:
Mirco Wittrien 2020-06-04 16:52:02 +02:00
parent f73df71ca8
commit 319adece69
1 changed files with 1 additions and 4 deletions
Plugins/HideMutedCategories

View File

@ -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;
};
}