From 07e60691a568f8874e45596a2205cd5df236d2fc Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 1 Nov 2023 12:11:55 +0100 Subject: [PATCH] Revert "Update 0BDFDB.plugin.js" This reverts commit 40ced96474e659ab1125eb00b16dc483b2e0874e. --- Library/0BDFDB.plugin.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index c926295474..f2265e9c01 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.4.9 + * @version 3.4.8 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -8132,11 +8132,11 @@ module.exports = (_ => { "Menu", "MessageActionsContextMenu", "MessageHeader", - "NameContainer", "SearchBar" ], after: [ "DiscordTag", + "MemberListItem", "UseCopyIdItem", "UserPopoutAvatar" ], @@ -8331,15 +8331,8 @@ module.exports = (_ => { Internal.processEmojiPickerListRow = function (e) { if (e.instance.props.emojiDescriptors && Internal.LibraryComponents.EmojiPickerButton.current && Internal.LibraryComponents.EmojiPickerButton.current.props && Internal.LibraryComponents.EmojiPickerButton.current.props.allowManagedEmojisUsage) for (let i in e.instance.props.emojiDescriptors) e.instance.props.emojiDescriptors[i] = Object.assign({}, e.instance.props.emojiDescriptors[i], {isDisabled: false}); }; - Internal.processNameContainer = function (e) { - if (e.instance.props.innerClassName != BDFDB.disCN.memberinner) return; - let avatar = BDFDB.ReactUtils.findChild(e.instance.props.avatar, {props: ["src"]}); - if (!avatar) return; - let src = avatar.props._originalSrc || avatar.props.src; - if (!src || src.startsWith("/assets/")) return; - let user = Internal.LibraryStores.UserStore.getUser((src.split(".com/avatars/")[1] || "").split("/")[0]); - if (!user) return; - e.instance.props.avatar = Internal._processAvatarRender(user, e.instance.props.avatar) || e.instance.props.avatar; + Internal.processMemberListItem = function (e) { + e.returnvalue.props.avatar = Internal._processAvatarRender(e.instance.props.user, e.returnvalue.props.avatar) || e.returnvalue.props.avatar; }; Internal.processMenu = function (e) { if (e.instance.props && (!e.instance.props.children || BDFDB.ArrayUtils.is(e.instance.props.children) && !e.instance.props.children.length)) Internal.LibraryModules.ContextMenuUtils.closeContextMenu();