From e9cc0859e5091e7ee38bd097150760036f1bcf62 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 22 Nov 2022 02:50:40 +0100 Subject: [PATCH] Update StaffTag.plugin.js --- Plugins/StaffTag/StaffTag.plugin.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Plugins/StaffTag/StaffTag.plugin.js b/Plugins/StaffTag/StaffTag.plugin.js index d01161d5f8..f175a8e28f 100644 --- a/Plugins/StaffTag/StaffTag.plugin.js +++ b/Plugins/StaffTag/StaffTag.plugin.js @@ -97,7 +97,6 @@ module.exports = (_ => { "MemberListItem", "NameTag", "UsernameSection", - "UserPopoutInfo", "VoiceUser" ] }; @@ -333,22 +332,6 @@ module.exports = (_ => { } } } - - processUserPopoutInfo (e) { - if (e.instance.props.user && this.settings.tagPlaces.userPopout) { - let userType = this.getUserType(e.instance.props.user, e.instance.props.channel && e.instance.props.channel.id); - if (userType) { - let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutheadernickname]]}); - if (index > -1) { - if (!BDFDB.ArrayUtils.is(children[index].props.children)) children[index].props.children = [children[index].props.children].flat(10); - this.injectStaffTag(children[index].props.children, e.instance.props.user, userType, 2, { - tagClass: BDFDB.disCNS.userpopoutheaderbottag + BDFDB.disCN.bottagnametag, - inverted: typeof e.instance.getMode == "function" && e.instance.getMode() !== "Normal" - }); - } - } - } - } injectStaffTag (children, user, userType, insertIndex, config = {}) { if (!BDFDB.ArrayUtils.is(children) || !user) return;