This commit is contained in:
Mirco Wittrien 2023-06-23 18:12:09 +02:00
parent 61a3c87384
commit 40f06fdb4d
2 changed files with 3 additions and 3 deletions

View File

@ -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"});

View File

@ -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"),