Update ServerHider.plugin.js
This commit is contained in:
parent
cb001c9883
commit
b461023c69
|
@ -91,7 +91,7 @@ module.exports = (_ => {
|
|||
}});
|
||||
|
||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryStores.GuildReadStateStore, "getMutableGuildStates", {after: e => {
|
||||
if (!e.returnValue) return;
|
||||
if (!e.returnValue || this.settings.general.onlyHideInStream && !BDFDB.LibraryStores.StreamerModeStore.enabled) return;
|
||||
let hiddenGuildIds = hiddenEles && hiddenEles.servers || [];
|
||||
if (hiddenGuildIds.length) for (let id in e.returnValue) if (hiddenGuildIds.includes(id)) e.returnValue[id] = Object.assign({}, e.returnValue[id], {mentionCount: 0, mentionCounts: {}});
|
||||
}});
|
||||
|
|
Loading…
Reference in New Issue