From e78ada47df274ffb43d1cefea3f3804b0fa21bb5 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 22 Nov 2019 14:27:12 +0100 Subject: [PATCH] Update ServerHider.plugin.js --- Plugins/ServerHider/ServerHider.plugin.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Plugins/ServerHider/ServerHider.plugin.js b/Plugins/ServerHider/ServerHider.plugin.js index 7f4d935ebd..ca5fa28046 100644 --- a/Plugins/ServerHider/ServerHider.plugin.js +++ b/Plugins/ServerHider/ServerHider.plugin.js @@ -21,27 +21,10 @@ class ServerHider { }; } - initConstructor () { - this.defaults = { - settings: { - clearNotifications: {value:false, description:"Automatically clear any kind of notification of all hidden servers."}, - } - }; - } - getSettingsPanel () { if (!global.BDFDB || typeof BDFDB != "object" || !BDFDB.loaded || !this.started) return; - let settings = BDFDB.DataUtils.get(this, "settings"); let settingsitems = []; - for (let key in settings) settingsitems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, { - className: BDFDB.disCN.marginbottom8, - type: "Switch", - plugin: this, - keys: ["settings", key], - label: this.defaults.settings[key].description, - value: settings[key] - })); settingsitems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsItem, { type: "Button", className: BDFDB.disCN.marginbottom8, @@ -272,10 +255,6 @@ class ServerHider { BDFDB.ModuleUtils.forceAllUpdates(this); } - unreadServer (id) { - if (BDFDB.DataUtils.get(this, "settings", "clearNotifications") && !this.isInFolder(id)) BDFDB.GuildUtils.markAsRead(id); - } - setLabelsByLanguage () { switch (BDFDB.LanguageUtils.getLanguage().id) { case "hr": //croatian