EditChannels now channels in the mention popout

This commit is contained in:
Mirco Wittrien 2018-12-27 18:27:41 +01:00
parent 2403341066
commit 2dfd32de16
1 changed files with 7 additions and 1 deletions

View File

@ -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) {