From d2c545ba23407e8a6774f1a2b20f5d2c734c6654 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 15 Jun 2021 19:08:38 +0200 Subject: [PATCH] Update EditChannels.plugin.js --- Plugins/EditChannels/EditChannels.plugin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index 17ddc3ff9f..9e23b18ea2 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.3.0 + * @version 4.3.1 * @description Allows you to locally edit Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,13 +17,14 @@ module.exports = (_ => { "info": { "name": "EditChannels", "author": "DevilBro", - "version": "4.3.0", + "version": "4.3.1", "description": "Allows you to locally edit Channels" }, "changeLog": { "fixed": { "Group DMs": "Fixed some stuff in Group DMs", - "Show Hidden Channels": "Fixed some Issues with the fake category created by ShowHiddenChannels" + "Show Hidden Channels": "Fixed some Issues with the fake category created by ShowHiddenChannels", + "Color Inherit": "Works again" } } }; @@ -633,8 +634,7 @@ module.exports = (_ => { } getChannelDataColor (channelId) { - if (!changedChannels[channelId]) return null; - if (changedChannels[channelId].color) return changedChannels[channelId].color; + if (changedChannels[channelId] && changedChannels[channelId].color) return changedChannels[channelId].color; let channel = BDFDB.LibraryModules.ChannelStore.getChannel(channelId); let category = channel && channel.parent_id && BDFDB.LibraryModules.ChannelStore.getChannel(channel.parent_id); if (category && changedChannels[category.id] && changedChannels[category.id].inheritColor && changedChannels[category.id].color) return changedChannels[category.id].color;