Update ServerHider.plugin.js

This commit is contained in:
Mirco Wittrien 2019-05-09 11:37:07 +02:00
parent d71067578c
commit 5667eac781
1 changed files with 7 additions and 1 deletions

View File

@ -279,7 +279,13 @@ class ServerHider {
}
unreadServer (id) {
if (BDFDB.getData("clearNotifications", this, "settings")) BDFDB.markGuildAsRead(id);
if (BDFDB.getData("clearNotifications", this, "settings") && this.isInFolder(id)) BDFDB.markGuildAsRead(id);
}
isInFolder (id) {
if (!BDFDB.isPluginEnabled("ServerFolders")) return false;
for (let folder in BDFDB.loadAllData(this, "folders")) if ((folder.servers || []).includes(id)) return true;
return false;
}
setLabelsByLanguage () {