From 40f06fdb4d02024b61bc8f7f1b6de144fc67c2a9 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 23 Jun 2023 18:12:09 +0200 Subject: [PATCH] stuff --- Plugins/EditUsers/EditUsers.plugin.js | 4 ++-- Plugins/ImageUtilities/ImageUtilities.plugin.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 881029cf38..f13209ec85 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -2,7 +2,7 @@ * @name EditUsers * @author DevilBro * @authorId 278543574059057154 - * @version 4.8.2 + * @version 4.8.3 * @description Allows you to locally edit Users * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -403,7 +403,7 @@ module.exports = (_ => { } if (e.instance.props.user) { if (this.settings.places.contextMenu) { - let userData = this.getUserData(user.id); + let userData = this.getUserData(e.instance.props.user.id); if (userData.globalName && userData.globalName != e.instance.props.user.globalName || !userData.globalName && userData.username != e.instance.props.user.username) { let username = userData.globalName || userData.username; let [timeoutChildren, timeoutIndex] = BDFDB.ContextMenuUtils.findItem(e.returnvalue, {id: "timeout"}); diff --git a/Plugins/ImageUtilities/ImageUtilities.plugin.js b/Plugins/ImageUtilities/ImageUtilities.plugin.js index 3c86f48535..58d0a5e2a3 100644 --- a/Plugins/ImageUtilities/ImageUtilities.plugin.js +++ b/Plugins/ImageUtilities/ImageUtilities.plugin.js @@ -781,7 +781,7 @@ module.exports = (_ => { }); let [children, index] = config.isNative && nativeIndex > -1 ? [nativeParent, nativeIndex] : BDFDB.ContextMenuUtils.findItem(e.returnvalue, {id: "devmode-copy-id", group: true}); - children.splice(index > -1 ? index : children.length, 0, config.isNative ? subMenu : BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuGroup, { + children.splice(index > -1 ? index : children.length, 0, config.isNative && nativeIndex > -1 ? subMenu : BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuGroup, { children: BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuItem, { label: config.label || (this.isValid(validUrls[0].file, "video") ? this.labels.context_videoactions : this.labels.context_imageactions), id: BDFDB.ContextMenuUtils.createItemId(this.name, config.id, "main-subitem"),