Update ServerHider.plugin.js
This commit is contained in:
parent
d71067578c
commit
5667eac781
|
@ -279,7 +279,13 @@ class ServerHider {
|
||||||
}
|
}
|
||||||
|
|
||||||
unreadServer (id) {
|
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 () {
|
setLabelsByLanguage () {
|
||||||
|
|
Loading…
Reference in New Issue