From 9a8ad3a504721013a7d8e10b19797d8987278480 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 8 Apr 2021 16:00:33 +0200 Subject: [PATCH] stuff --- Library/_res/BDFDB.data.json | 1 + Plugins/EditChannels/EditChannels.plugin.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index 010933151b..42c21c7771 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -1652,6 +1652,7 @@ "channelmodeselected": ["Channel", "modeSelected"], "channelmodeunread": ["Channel", "modeUnread"], "channelname": ["Channel", "name"], + "channelnameinner": ["Channel", "channelName"], "channelpanel": ["AppBase", "activityPanel"], "channelpaneltitle": ["NotFound", "channelPanelTitle"], "channelpanels": ["AppBase", "panels"], diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index c8d7e3936e..2cefb8c6b2 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -2,7 +2,7 @@ * @name EditChannels * @author DevilBro * @authorId 278543574059057154 - * @version 4.2.6 + * @version 4.2.7 * @description Allows you to locally edit Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,12 +17,12 @@ module.exports = (_ => { "info": { "name": "EditChannels", "author": "DevilBro", - "version": "4.2.6", + "version": "4.2.7", "description": "Allows you to locally edit Channels" }, "changeLog": { "fixed": { - "Mentions": "" + "Gradient": "Works for Channels again" } } }; @@ -373,7 +373,7 @@ module.exports = (_ => { if (!e.returnvalue) e.instance.props.channel = this.getChannelData(e.instance.props.channel.id); else { let modify = BDFDB.ObjectUtils.extract(Object.assign({}, e.instance.props, e.instance.state), "muted", "locked", "selected", "unread", "connected", "hovered"); - let channelName = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.channelname]]}); + let channelName = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.channelnameinner]]}); if (channelName) this.changeChannelColor(channelName, e.instance.props.channel.id, modify); let channelIcon = settings.changeChannelIcon && BDFDB.ReactUtils.findChild(e.returnvalue, {name: "ChannelItemIcon"}); if (channelIcon && typeof channelIcon.type == "function") {