diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index 854cf89844..918084d72b 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -116,7 +116,6 @@ module.exports = (_ => { "DirectMessage", "FocusRingScope", "HeaderBarContainer", - "Mention", "PrivateChannel", "QuickSwitchChannelResult", "RecentsChannelHeader", @@ -455,13 +454,8 @@ module.exports = (_ => { processFocusRingScope (e) { if (!e.returnvalue || !e.returnvalue.props.className) return; let change, hoveredEvents, channelId, nameClass, categoyClass, iconClass, modify = {}; - if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.categoryiconvisibility) > -1) { - change = true; - hoveredEvents = true; - channelId = (BDFDB.ReactUtils.findValue(e.returnvalue, "data-list-item-id") || "").split("___").pop(); - nameClass = BDFDB.disCN.categoryname; - iconClass = BDFDB.disCN.categoryicon; - modify = {muted: BDFDB.LibraryStores.UserGuildSettingsStore.isGuildOrCategoryOrChannelMuted(BDFDB.LibraryStores.SelectedGuildStore.getGuildId(), channelId)}; + if (this.settings.places.mentions && e.returnvalue.props.className.indexOf(BDFDB.disCN.mention) > -1 && e.instance.props["edited-mention-color"]) { + e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]}); } if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.channeliconvisibility) > -1) { change = true; @@ -739,10 +733,6 @@ module.exports = (_ => { } } - processMention (e) { - if (e.instance.props["edited-mention-color"]) e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]}); - } - changeChannelColor (child, channelId, modify) { if (!BDFDB.ReactUtils.isValidElement(child)) return; let color = this.getChannelDataColor(channelId);