From 2dfd32de1634f57e964e0f588fa741a01fec1b62 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 27 Dec 2018 18:27:41 +0100 Subject: [PATCH] EditChannels now channels in the mention popout --- Plugins/EditChannels/EditChannels.plugin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index 609eca8e15..761ab333c1 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -101,7 +101,7 @@ class EditChannels { getDescription () {return "Allows you to rename and recolor channelnames.";} - getVersion () {return "3.8.3";} + getVersion () {return "3.8.4";} getAuthor () {return "DevilBro";} @@ -348,6 +348,12 @@ class EditChannels { if (fiber.return.memoizedProps.category) this.changeChannel(fiber.return.memoizedProps.category, wrapper.querySelector(BDFDB.dotCN.autocompletedescription)); } } + else if (instance.props.tag == "span" && instance.props.className.indexOf(BDFDB.disCN.messagespopoutchannelname) > -1) { + let fiber = instance._reactInternalFiber; + if (fiber.return && fiber.return.sibling && fiber.return.sibling.child && fiber.return.sibling.child.child && fiber.return.sibling.child.child.memoizedProps) { + this.changeChannel2(fiber.return.sibling.child.child.memoizedProps.channel, wrapper); + } + } } processStandardSidebarView (instance, wrapper) {